Merge pull request #177 from icanos/develop

Release 0.7.1
This commit is contained in:
Victor 2021-03-25 16:48:42 +01:00 committed by GitHub
commit e5df9c9f52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 5 deletions

View file

@ -1,5 +1,13 @@
# Changelog hassio-plejd Home Assistant Plejd addon # Changelog hassio-plejd Home Assistant Plejd addon
## [0.7.1](https://github.com/icanos/hassio-plejd/tree/0.7.1) (2021-03-25)
[Full Changelog](https://github.com/icanos/hassio-plejd/compare/0.7.0...0.7.1)
**Closed issues:**
- Can't connect to device: TypeError: Cannot read property 'dimmable' [\#175](https://github.com/icanos/hassio-plejd/issues/175)
## [0.7.0](https://github.com/icanos/hassio-plejd/tree/0.7.0) (2021-03-23) ## [0.7.0](https://github.com/icanos/hassio-plejd/tree/0.7.0) (2021-03-23)
[Full Changelog](https://github.com/icanos/hassio-plejd/compare/0.6.2...0.7.0) [Full Changelog](https://github.com/icanos/hassio-plejd/compare/0.6.2...0.7.0)

View file

@ -41,12 +41,17 @@ class DeviceRegistry {
); );
if (added.roomId) { if (added.roomId) {
const room = this.deviceIdsByRoom[added.roomId] || []; if (!this.deviceIdsByRoom[added.roomId]) {
if (!room.includes(added.roomId)) { this.deviceIdsByRoom[added.roomId] = [];
this.deviceIdsByRoom[added.roomId] = [...room, added.roomId]; }
const room = this.deviceIdsByRoom[added.roomId];
if (!room.includes(added.id)) {
this.deviceIdsByRoom[added.roomId] = [...room, added.id];
} }
logger.verbose( logger.verbose(
`Added to room #${added.roomId}: ${JSON.stringify(this.deviceIdsByRoom[added.roomId])}`, `Added device to room ${added.roomId}: ${JSON.stringify(
this.deviceIdsByRoom[added.roomId],
)}`,
); );
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "Plejd", "name": "Plejd",
"version": "0.7.0", "version": "0.7.1",
"slug": "plejd", "slug": "plejd",
"description": "Adds support for the Swedish home automation devices from Plejd.", "description": "Adds support for the Swedish home automation devices from Plejd.",
"url": "https://github.com/icanos/hassio-plejd/", "url": "https://github.com/icanos/hassio-plejd/",