Add init return type to integrations (#87523)
Add type hints to integrations
This commit is contained in:
parent
ade0d6fcae
commit
bb3e0633a4
78 changed files with 118 additions and 84 deletions
|
@ -37,7 +37,7 @@ async def async_setup_entry(
|
|||
class NightscoutSensor(SensorEntity):
|
||||
"""Implementation of a Nightscout sensor."""
|
||||
|
||||
def __init__(self, api: NightscoutAPI, name, unique_id):
|
||||
def __init__(self, api: NightscoutAPI, name, unique_id) -> None:
|
||||
"""Initialize the Nightscout sensor."""
|
||||
self.api = api
|
||||
self._attr_unique_id = unique_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue