diff --git a/homeassistant/components/acmeda/base.py b/homeassistant/components/acmeda/base.py index 138587bbad3..2fc106f75f5 100644 --- a/homeassistant/components/acmeda/base.py +++ b/homeassistant/components/acmeda/base.py @@ -14,6 +14,7 @@ class AcmedaBase(entity.Entity): """Base representation of an Acmeda roller.""" _attr_should_poll = False + _attr_has_entity_name = True def __init__(self, roller: aiopulse.Roller) -> None: """Initialize the roller.""" @@ -72,11 +73,6 @@ class AcmedaBase(entity.Entity): """Return the ID of this roller.""" return self.roller.id - @property - def name(self) -> str | None: - """Return the name of roller.""" - return self.roller.name - @property def device_info(self) -> entity.DeviceInfo: """Return the device info.""" diff --git a/homeassistant/components/acmeda/cover.py b/homeassistant/components/acmeda/cover.py index 15a20cf6932..2af985033b6 100644 --- a/homeassistant/components/acmeda/cover.py +++ b/homeassistant/components/acmeda/cover.py @@ -45,7 +45,9 @@ async def async_setup_entry( class AcmedaCover(AcmedaBase, CoverEntity): - """Representation of a Acmeda cover device.""" + """Representation of an Acmeda cover device.""" + + _attr_name = None @property def current_cover_position(self) -> int | None: diff --git a/homeassistant/components/acmeda/sensor.py b/homeassistant/components/acmeda/sensor.py index f92d9fcf57b..e8ccb30ada4 100644 --- a/homeassistant/components/acmeda/sensor.py +++ b/homeassistant/components/acmeda/sensor.py @@ -40,16 +40,11 @@ async def async_setup_entry( class AcmedaBattery(AcmedaBase, SensorEntity): - """Representation of a Acmeda cover device.""" + """Representation of an Acmeda cover sensor.""" _attr_device_class = SensorDeviceClass.BATTERY _attr_native_unit_of_measurement = PERCENTAGE - @property - def name(self) -> str: - """Return the name of roller.""" - return f"{super().name} Battery" - @property def native_value(self) -> float | int | None: """Return the state of the device."""