commit
e5df9c9f52
3 changed files with 18 additions and 5 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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],
|
||||||
|
)}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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/",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue