mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 21:10:25 +00:00
Upgrade black to 20.8b1 (#39287)
This commit is contained in:
@@ -17,7 +17,13 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
entities = []
|
||||
imei = await gateway.get_imei_async()
|
||||
name = f"gsm_signal_imei_{imei}"
|
||||
entities.append(GSMSignalSensor(hass, gateway, name,))
|
||||
entities.append(
|
||||
GSMSignalSensor(
|
||||
hass,
|
||||
gateway,
|
||||
name,
|
||||
)
|
||||
)
|
||||
async_add_entities(entities, True)
|
||||
|
||||
|
||||
@@ -25,7 +31,10 @@ class GSMSignalSensor(Entity):
|
||||
"""Implementation of a GSM Signal sensor."""
|
||||
|
||||
def __init__(
|
||||
self, hass, gateway, name,
|
||||
self,
|
||||
hass,
|
||||
gateway,
|
||||
name,
|
||||
):
|
||||
"""Initialize the GSM Signal sensor."""
|
||||
self._hass = hass
|
||||
|
||||
Reference in New Issue
Block a user