Skip to content

Commit

Permalink
Change formatting by black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
enkama committed Dec 4, 2021
1 parent e54b50e commit 7902c7a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions custom_components/variable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 7902c7a

Please sign in to comment.