From 78bba80422999a1022d7845d1376c8922687107c Mon Sep 17 00:00:00 2001 From: Paul Frank Date: Thu, 4 Jul 2024 09:24:43 +0000 Subject: [PATCH] bump ruff --- custom_components/stiebel_eltron_isg/config_flow.py | 8 ++------ requirements.txt | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/custom_components/stiebel_eltron_isg/config_flow.py b/custom_components/stiebel_eltron_isg/config_flow.py index d38dc0b..f936128 100644 --- a/custom_components/stiebel_eltron_isg/config_flow.py +++ b/custom_components/stiebel_eltron_isg/config_flow.py @@ -64,15 +64,11 @@ def __init__(self): def _host_in_configuration_exists(self, host) -> bool: """Return True if host exists in configuration.""" - if host in stiebeleltron_modbus_entries(self.hass): - return True - return False + return host in stiebeleltron_modbus_entries(self.hass) def _name_in_configuration_exists(self, name) -> bool: """Return True if host exists in configuration.""" - if name in stiebeleltron_entries(self.hass): - return True - return False + return name in stiebeleltron_entries(self.hass) async def async_step_user(self, user_input=None): """Handle a flow initialized by the user.""" diff --git a/requirements.txt b/requirements.txt index ee970d6..edd9feb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ colorlog==6.8.2 pip>=21.0,<24.2 pymodbus>=3.6.8 -ruff==0.4.10 +ruff==0.5.0 pytest-homeassistant-custom-component==0.13.141