Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Versions from 0.40 and up

## Ongoing

- Add comment, small improvement.

## v0.53.0

- New Feature: show model_id's of all devices (Adam, Anna, not for legacy gateways).
Expand Down
2 changes: 1 addition & 1 deletion custom_components/plugwise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: PlugwiseConfigEntry) ->
model=coordinator.api.smile_model,
name=coordinator.api.smile_name,
sw_version=coordinator.api.smile_version,
)
) # required for adding the entity-less P1 Gateway

async def delete_notification(
call: ServiceCall,
Expand Down
3 changes: 1 addition & 2 deletions custom_components/plugwise/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def is_on(self) -> bool:
self.hass, message, "Plugwise Notification:", f"{DOMAIN}.{notify_id}"
)

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

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