Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
Mark parameter as an immutable mapping, suppressing B008 error.
  • Loading branch information
jaraco committed Mar 24, 2024
1 parent 81a93f1 commit 1552cf6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/mock/devices/alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1552cf6

Please sign in to comment.