Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof
2020-08-27 13:56:20 +02:00
committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
574 changed files with 4389 additions and 1725 deletions

View File

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