mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
Add lock typing in starline (#73546)
This commit is contained in:
parent
6374fd0992
commit
2b5748912d
@ -1,4 +1,6 @@
|
||||
"""Support for StarLine lock."""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
|
||||
from homeassistant.components.lock import LockEntity
|
||||
@ -66,7 +68,7 @@ class StarlineLock(StarlineEntity, LockEntity):
|
||||
)
|
||||
|
||||
@property
|
||||
def is_locked(self):
|
||||
def is_locked(self) -> bool | None:
|
||||
"""Return true if lock is locked."""
|
||||
return self._device.car_state.get("arm")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user