Skip to content

Commit

Permalink
Change so flake8 rules go trough
Browse files Browse the repository at this point in the history
  • Loading branch information
enkama authored Dec 5, 2021
1 parent 2440489 commit 65bd992
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/variable/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""variable implementation for Home Assistant."""
import asyncio
import logging

import voluptuous as vol
Expand Down Expand Up @@ -104,9 +103,9 @@ async def async_set_variable_service(call):

if entity:
await entity.async_set_variable(
call.data.get(ATTR_VALUE),
call.data.get(ATTR_ATTRIBUTES),
call.data.get(ATTR_REPLACE_ATTRIBUTES, False),
call.data.get(ATTR_VALUE),
call.data.get(ATTR_ATTRIBUTES),
call.data.get(ATTR_REPLACE_ATTRIBUTES, False),
)
else:
_LOGGER.warning(f"Failed to set unknown variable: {entity_id}")
Expand Down

0 comments on commit 65bd992

Please sign in to comment.