From 65bd992f517f01fff9ca28028966bc423a524817 Mon Sep 17 00:00:00 2001 From: Wibias <37517432+Wibias@users.noreply.github.com> Date: Sun, 5 Dec 2021 21:32:16 +0100 Subject: [PATCH] Change so flake8 rules go trough --- custom_components/variable/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/custom_components/variable/__init__.py b/custom_components/variable/__init__.py index ecd3a6c..1eee279 100644 --- a/custom_components/variable/__init__.py +++ b/custom_components/variable/__init__.py @@ -1,5 +1,4 @@ """variable implementation for Home Assistant.""" -import asyncio import logging import voluptuous as vol @@ -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}")