Improve entity type hints [d] (#77031)

This commit is contained in:
epenet
2022-08-19 16:10:45 +02:00
committed by GitHub
parent 2d197fd59e
commit bf7239c25d
31 changed files with 141 additions and 119 deletions

View File

@@ -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