From 21ff8c8e037915f73539195f4b83416349efa0b9 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 25 Feb 2024 19:01:20 +0100 Subject: [PATCH] Update pylint to 3.1.0 (#111392) --- homeassistant/components/homekit/type_thermostats.py | 3 +-- homeassistant/components/trafikverket_ferry/coordinator.py | 3 +-- requirements_test.txt | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/homekit/type_thermostats.py b/homeassistant/components/homekit/type_thermostats.py index 4dcc6fb8f65..c638da55764 100644 --- a/homeassistant/components/homekit/type_thermostats.py +++ b/homeassistant/components/homekit/type_thermostats.py @@ -839,8 +839,7 @@ def _get_temperature_range_from_state( # the max to appears to work, but less than 0 causes # a crash on the home app min_temp = max(min_temp, 0) - if min_temp > max_temp: - max_temp = min_temp + max_temp = max(max_temp, min_temp) return min_temp, max_temp diff --git a/homeassistant/components/trafikverket_ferry/coordinator.py b/homeassistant/components/trafikverket_ferry/coordinator.py index 32c97b4fe0a..4c209a3ba87 100644 --- a/homeassistant/components/trafikverket_ferry/coordinator.py +++ b/homeassistant/components/trafikverket_ferry/coordinator.py @@ -77,8 +77,7 @@ class TVDataUpdateCoordinator(DataUpdateCoordinator): if self._time else dt_util.now() ) - if current_time > when: - when = current_time + when = max(when, current_time) try: routedata: list[ diff --git a/requirements_test.txt b/requirements_test.txt index c42525fb007..47220f408a9 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -7,14 +7,14 @@ -c homeassistant/package_constraints.txt -r requirements_test_pre_commit.txt -astroid==3.0.3 +astroid==3.1.0 coverage==7.4.3 freezegun==1.3.1 mock-open==1.4.0 mypy==1.8.0 pre-commit==3.6.2 pydantic==1.10.12 -pylint==3.0.4 +pylint==3.1.0 pylint-per-file-ignores==1.3.2 pipdeptree==2.15.1 pytest-asyncio==0.23.5