Skip to content

Commit ffbfa23

Browse files
authored
Merge pull request #712 from plugwise/comment
Some small updates
2 parents 788543e + 5a87f79 commit ffbfa23

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Versions from 0.40 and up
44

5+
## Ongoing
6+
7+
- Add comment, small improvement.
8+
59
## v0.53.0
610

711
- New Feature: show model_id's of all devices (Adam, Anna, not for legacy gateways).

custom_components/plugwise/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: PlugwiseConfigEntry) ->
5656
model=coordinator.api.smile_model,
5757
name=coordinator.api.smile_name,
5858
sw_version=coordinator.api.smile_version,
59-
)
59+
) # required for adding the entity-less P1 Gateway
6060

6161
async def delete_notification(
6262
call: ServiceCall,

custom_components/plugwise/binary_sensor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ def is_on(self) -> bool:
174174
self.hass, message, "Plugwise Notification:", f"{DOMAIN}.{notify_id}"
175175
)
176176

177-
# return self.device["binary_sensors"][self.entity_description.key] # type: ignore [literal-required]
178-
return self.device["binary_sensors"][self.entity_description.key]
177+
return self.device[BINARY_SENSORS][self.entity_description.key]
179178

180179
@property
181180
def extra_state_attributes(self) -> Mapping[str, Any] | None:

0 commit comments

Comments
 (0)