Skip to content

Commit

Permalink
Minor readme fix for yarn installation and getting configuration with…
Browse files Browse the repository at this point in the history
…out using deprecated method
  • Loading branch information
ctobolski committed Feb 13, 2020
1 parent b0dd24c commit 0d0d010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $ npm install node-hue-api

Node.js using yarn:
```
$ yarn install node-hue-api
$ yarn add node-hue-api
```

## v3 API
Expand Down Expand Up @@ -268,7 +268,7 @@ async function discoverAndCreateUser() {
const authenticatedApi = await hueApi.createLocal(ipAddress).connect(createdUser.username);

// Do something with the authenticated user/api
const bridgeConfig = await authenticatedApi.configuration.get();
const bridgeConfig = await authenticatedApi.configuration.getConfiguration();
console.log(`Connected to Hue Bridge: ${bridgeConfig.name} :: ${bridgeConfig.ipaddress}`);

} catch(err) {
Expand Down

0 comments on commit 0d0d010

Please sign in to comment.