mirror of
https://github.com/home-assistant/core.git
synced 2026-04-22 09:48:43 +01:00
Improve entity type hints [a] (#76986)
This commit is contained in:
@@ -53,7 +53,7 @@ class AdsBinarySensor(AdsEntity, BinarySensorEntity):
|
||||
super().__init__(ads_hub, name, ads_var)
|
||||
self._attr_device_class = device_class or BinarySensorDeviceClass.MOVING
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Register device notification."""
|
||||
await self.async_initialize_device(self._ads_var, pyads.PLCTYPE_BOOL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user