From 1552cf68daf33b3db1ecaf8b55fb550ad6ece3a2 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 23 Mar 2024 20:44:29 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B9=20Feed=20the=20hobgoblins=20(delin?= =?UTF-8?q?t).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mark parameter as an immutable mapping, suppressing B008 error. --- tests/mock/devices/alarm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/mock/devices/alarm.py b/tests/mock/devices/alarm.py index 86610f4..d1f848c 100644 --- a/tests/mock/devices/alarm.py +++ b/tests/mock/devices/alarm.py @@ -6,11 +6,14 @@ the panel/alarm itself into a Home Assistant device. """ +from collections.abc import Mapping +from typing import Any + from jaraco.abode.devices import alarm from .. import panel as PANEL -def device(area='1', panel=PANEL.get_response_ok(mode='standby')): +def device(area='1', panel: Mapping[str:Any] = PANEL.get_response_ok(mode='standby')): """Alarm mock device.""" return alarm.state_from_panel(panel)