diff --git a/custom_components/variable/__init__.py b/custom_components/variable/__init__.py index 9df0318..47b80ab 100644 --- a/custom_components/variable/__init__.py +++ b/custom_components/variable/__init__.py @@ -94,8 +94,7 @@ async def async_setup(hass, config): force_update = variable_config.get(CONF_FORCE_UPDATE, False) entities.append( - Variable(variable_id, name, value, - attributes, restore, force_update) + Variable(variable_id, name, value, attributes, restore, force_update) ) @asyncio.coroutine @@ -118,9 +117,7 @@ def async_set_variable_service(call): yield from asyncio.wait(tasks, loop=hass.loop) else: - _LOGGER.warning( - f"Failed to set unknown variable: {entity_id}" - ) + _LOGGER.warning(f"Failed to set unknown variable: {entity_id}") hass.services.async_register( DOMAIN,