Skip to content

Commit

Permalink
fix: change default platform to xiaomi_miio_airpurifier
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Changes default platform from xiaomi_miio to xiaomi_miio_airpurifier
  • Loading branch information
denysdovhan committed Dec 1, 2021
1 parent bc93b78 commit 81f302d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ Here is what every option means:
| `aqi` | `object` | Optional | Custom entity or attribute for AQI value. |
| `stats` | `object` | Optional | Custom per state stats for your purifier cleaner |
| `shortcuts` | `object` | Optional | Custom shortcuts for your purifier cleaner. |
| `platform` | `string` | Optional | Default `xiaomi_miio_airpurifier` |

### `aqi` object

Expand Down
2 changes: 1 addition & 1 deletion src/purifier-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PurifierCard extends LitElement {

get platform() {
if (this.config.platform === undefined) {
return 'xiaomi_miio';
return 'xiaomi_miio_airpurifier';
}

return this.config.platform;
Expand Down

0 comments on commit 81f302d

Please sign in to comment.