diff --git a/homeassistant/components/deluge/__init__.py b/homeassistant/components/deluge/__init__.py index 2958b9e1df6..566b97b5b04 100644 --- a/homeassistant/components/deluge/__init__.py +++ b/homeassistant/components/deluge/__init__.py @@ -73,6 +73,8 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: class DelugeEntity(CoordinatorEntity[DelugeDataUpdateCoordinator]): """Representation of a Deluge entity.""" + _attr_has_entity_name = True + def __init__(self, coordinator: DelugeDataUpdateCoordinator) -> None: """Initialize a Deluge entity.""" super().__init__(coordinator) diff --git a/homeassistant/components/deluge/sensor.py b/homeassistant/components/deluge/sensor.py index 8a8e8f64657..bcdca8b3d92 100644 --- a/homeassistant/components/deluge/sensor.py +++ b/homeassistant/components/deluge/sensor.py @@ -52,14 +52,14 @@ SENSOR_TYPES: tuple[DelugeSensorEntityDescription, ...] = ( ), DelugeSensorEntityDescription( key=DOWNLOAD_SPEED, - name="Down Speed", + name="Down speed", native_unit_of_measurement=DATA_RATE_KILOBYTES_PER_SECOND, state_class=SensorStateClass.MEASUREMENT, value=lambda data: get_state(data, DOWNLOAD_SPEED), ), DelugeSensorEntityDescription( key=UPLOAD_SPEED, - name="Up Speed", + name="Up speed", native_unit_of_measurement=DATA_RATE_KILOBYTES_PER_SECOND, state_class=SensorStateClass.MEASUREMENT, value=lambda data: get_state(data, UPLOAD_SPEED), @@ -92,7 +92,6 @@ class DelugeSensor(DelugeEntity, SensorEntity): """Initialize the sensor.""" super().__init__(coordinator) self.entity_description = description - self._attr_name = f"{coordinator.config_entry.title} {description.name}" self._attr_unique_id = f"{coordinator.config_entry.entry_id}_{description.key}" @property diff --git a/homeassistant/components/deluge/switch.py b/homeassistant/components/deluge/switch.py index cc11fcaf86c..c25c1752ee4 100644 --- a/homeassistant/components/deluge/switch.py +++ b/homeassistant/components/deluge/switch.py @@ -29,7 +29,6 @@ class DelugeSwitch(DelugeEntity, SwitchEntity): def __init__(self, coordinator: DelugeDataUpdateCoordinator) -> None: """Initialize the Deluge switch.""" super().__init__(coordinator) - self._attr_name = coordinator.config_entry.title self._attr_unique_id = f"{coordinator.config_entry.entry_id}_enabled" def turn_on(self, **kwargs: Any) -> None: