mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Improve entity type hints [d] (#77031)
This commit is contained in:
@@ -35,7 +35,7 @@ class DSMRSensor(SensorEntity):
|
||||
slug = slugify(description.key.replace("/", "_"))
|
||||
self.entity_id = f"sensor.{slug}"
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Subscribe to MQTT events."""
|
||||
|
||||
@callback
|
||||
|
||||
Reference in New Issue
Block a user