Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgermain committed Aug 23, 2021
1 parent b15ff99 commit 4a09262
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions custom_components/multimatic/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ async def async_setup_entry(hass, entry, async_add_entities):
sensors.append(RoomDeviceBattery(rooms_coo, device))
sensors.append(RoomDeviceConnectivity(rooms_coo, device))

sensors.extend(
[
HolidayModeSensor(get_coordinator(hass, HOLIDAY_MODE, entry.unique_id)),
QuickModeSensor(get_coordinator(hass, QUICK_MODE, entry.unique_id)),
]
)
sensors.extend(
[
HolidayModeSensor(get_coordinator(hass, HOLIDAY_MODE, entry.unique_id)),
QuickModeSensor(get_coordinator(hass, QUICK_MODE, entry.unique_id)),
]
)

_LOGGER.info("Adding %s binary sensor entities", len(sensors))

Expand Down Expand Up @@ -445,18 +445,18 @@ def state_attributes(self):
"""Return the state attributes."""
state_attributes = {}
if self.coordinator.data.errors:
errors = []
for error in self.coordinator.data.errors:
state_attributes.update(
errors.append(
{
error.status_code: {
"status_code": error.status_code,
"title": error.title,
"timestamp": error.timestamp,
"description": error.description,
"device_name": error.device_name,
}
"status_code": error.status_code,
"title": error.title,
"timestamp": error.timestamp,
"description": error.description,
"device_name": error.device_name,
}
)
state_attributes["errors"] = errors
return state_attributes

@property
Expand Down
2 changes: 1 addition & 1 deletion custom_components/multimatic/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"codeowners": [
"@thomasgermain"
],
"version": "1.8.0",
"version": "1.8.1",
"iot_class": "cloud_polling"
}

0 comments on commit 4a09262

Please sign in to comment.