Skip to content

Commit

Permalink
Update cover.py to fix for HA 2023.9.0
Browse files Browse the repository at this point in the history
Update cover.py to fix for HA 2023.9.0 which was exhibited by the following errors/warnings in HA logs 

1. config entry: device info must include at least one of identifiers or connections

2. Entity None is implicitly using device name by not setting its name
  • Loading branch information
yarafie committed Sep 7, 2023
1 parent 57e0920 commit 0f1b0c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/remootio/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def async_setup_entry(
class RemootioCover(cover.CoverEntity):
"""Cover entity which represents an Remootio device controlled garage door or gate."""

_attr_name = None
_remootio_client: RemootioClient
_attr_has_entity_name = True
_attr_should_poll = False
Expand All @@ -70,6 +71,7 @@ def __init__(
self._attr_device_info = DeviceInfo(
name=name,
manufacturer="Assemblabs Ltd",
identifiers={(DOMAIN, self._attr_unique_id)},
)

async def async_added_to_hass(self) -> None:
Expand Down

0 comments on commit 0f1b0c1

Please sign in to comment.