mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Add init return type to integrations (#87523)
Add type hints to integrations
This commit is contained in:
@@ -195,7 +195,9 @@ class AugustDoorBinarySensor(AugustEntityMixin, BinarySensorEntity):
|
||||
|
||||
_attr_device_class = BinarySensorDeviceClass.DOOR
|
||||
|
||||
def __init__(self, data, device, description: BinarySensorEntityDescription):
|
||||
def __init__(
|
||||
self, data, device, description: BinarySensorEntityDescription
|
||||
) -> None:
|
||||
"""Initialize the sensor."""
|
||||
super().__init__(data, device)
|
||||
self.entity_description = description
|
||||
@@ -235,7 +237,9 @@ class AugustDoorbellBinarySensor(AugustEntityMixin, BinarySensorEntity):
|
||||
|
||||
entity_description: AugustBinarySensorEntityDescription
|
||||
|
||||
def __init__(self, data, device, description: AugustBinarySensorEntityDescription):
|
||||
def __init__(
|
||||
self, data, device, description: AugustBinarySensorEntityDescription
|
||||
) -> None:
|
||||
"""Initialize the sensor."""
|
||||
super().__init__(data, device)
|
||||
self.entity_description = description
|
||||
|
||||
Reference in New Issue
Block a user