Add lock typing in starline (#73546)

This commit is contained in:
epenet
2022-06-16 10:20:08 +02:00
committed by GitHub
parent 6374fd0992
commit 2b5748912d

View File

@@ -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")