Skip to content

Commit

Permalink
bump ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
pail23 committed Jul 4, 2024
1 parent a89d47f commit 78bba80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions custom_components/stiebel_eltron_isg/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 78bba80

Please sign in to comment.