Skip to content

Commit d6e8078

Browse files
committed
Bump
1 parent 9714b66 commit d6e8078

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: Latest commit
55

66
env:
7-
CACHE_VERSION: 2
7+
CACHE_VERSION: 3
88
DEFAULT_PYTHON: "3.10"
99
PRE_COMMIT_HOME: ~/.cache/pre-commit
1010

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ default_language_version:
99
repos:
1010
# Run manually in CI skipping the branch checks
1111
- repo: https://github.com/PyCQA/isort
12-
rev: 5.11.4
12+
rev: 5.12.0
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -26,7 +26,7 @@ repos:
2626
- id: pyupgrade
2727
args: [--py39-plus]
2828
- repo: https://github.com/psf/black
29-
rev: 22.12.0
29+
rev: 23.1.0
3030
hooks:
3131
- id: black
3232
args:

plugwise/helper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ def __init__(
225225
):
226226
"""Set the constructor for this class."""
227227
if not websession:
228-
229228
aio_timeout = ClientTimeout(total=timeout)
230229

231230
async def _create_session() -> ClientSession:
@@ -303,7 +302,9 @@ async def _request(
303302
data=data,
304303
auth=self._auth,
305304
)
306-
except ClientError as err: # ClientError is an ancestor class of ServerTimeoutError
305+
except (
306+
ClientError
307+
) as err: # ClientError is an ancestor class of ServerTimeoutError
307308
if retry < 1:
308309
LOGGER.warning(
309310
"Failed sending %s %s to Plugwise Smile, error: %s",
@@ -1014,7 +1015,6 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
10141015
if (
10151016
appliance := self._appliances.find(f'./appliance[@id="{d_id}"]')
10161017
) is not None:
1017-
10181018
self._appliance_measurements(appliance, data, measurements)
10191019
self._get_lock_state(appliance, data)
10201020

@@ -1082,7 +1082,6 @@ def _rank_thermostat(
10821082
appl_class = appliance_details["dev_class"]
10831083
appl_d_loc = appliance_details["location"]
10841084
if loc_id == appl_d_loc and appl_class in thermo_matching:
1085-
10861085
# Pre-elect new master
10871086
if thermo_matching[appl_class] > self._thermo_locs[loc_id]["master_prio"]:
10881087
# Demote former master

0 commit comments

Comments
 (0)