Skip to content

Commit

Permalink
Migrate Brunt to has entity name (home-assistant#96565)
Browse files Browse the repository at this point in the history
  • Loading branch information
joostlek authored Jul 18, 2023
1 parent 65db77d commit 5d096a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions homeassistant/components/brunt/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ class BruntDevice(
Contains the common logic for all Brunt devices.
"""

_attr_has_entity_name = True
_attr_name = None
_attr_device_class = CoverDeviceClass.BLIND
_attr_attribution = ATTRIBUTION
_attr_supported_features = (
CoverEntityFeature.OPEN
| CoverEntityFeature.CLOSE
Expand All @@ -83,12 +87,9 @@ def __init__(

self._remove_update_listener = None

self._attr_name = self._thing.name
self._attr_device_class = CoverDeviceClass.BLIND
self._attr_attribution = ATTRIBUTION
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self._attr_unique_id)}, # type: ignore[arg-type]
name=self._attr_name,
name=self._thing.name,
via_device=(DOMAIN, self._entry_id),
manufacturer="Brunt",
sw_version=self._thing.fw_version,
Expand Down

0 comments on commit 5d096a6

Please sign in to comment.