Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ucpy7374 committed Mar 8, 2024
1 parent 8f27dd0 commit 646a0f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/deltadore_tydom/ha_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
UnitOfElectricCurrent,
EntityCategory,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers.entity import DeviceInfo
from homeassistant.components.cover import (
ATTR_POSITION,
Expand Down Expand Up @@ -934,7 +933,7 @@ def state(self) -> str | None:
return STATE_ALARM_DISARMED
case "ON":
return STATE_ALARM_ARMED_AWAY
case other:
case _:
return STATE_ALARM_TRIGGERED

async def async_alarm_disarm(self, code=None) -> None:
Expand Down

0 comments on commit 646a0f9

Please sign in to comment.