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 400304f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/mock/devices/alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
the panel/alarm itself into a Home Assistant device.
"""

from typing import Any, Mapping

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)
3 changes: 1 addition & 2 deletions tests/mock/panel.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Mock Abode Panel Response."""

from collections.abc import Mapping
from typing import Any
from typing import Any, Mapping


def get_response_ok(
Expand Down

0 comments on commit 400304f

Please sign in to comment.