Skip to content

Commit

Permalink
fix: typo preventing air purifiers from being controlled
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Dec 31, 2021
1 parent 3d6a11f commit 0b0a03f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ The result object `ret` looks as follows:
Placeholder for next release:
### __WORK IN PROGRESS__
-->
### __WORK IN PROGRESS__
* Fixed a typo preventing the adapter from controlling air purifiers

### 3.1.1 (2021-12-21)
* Fix: actually create states for STARKVIND Air Purifier

Expand Down
2 changes: 1 addition & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ function startAdapter(options: Partial<utils.AdapterOptions> = {}) {
id.indexOf(".lightbulb.") > -1 ||
id.indexOf(".plug.") > -1 ||
id.indexOf(".blind.") > -1 ||
id.indexOf(".airpurifier.") > -1
id.indexOf(".airPurifier.") > -1
) {
// read the instanceId and get a reference value
if (!(rootObj.native.instanceId in $.devices)) {
Expand Down

0 comments on commit 0b0a03f

Please sign in to comment.