1
mirror of https://github.com/home-assistant/core synced 2024-07-18 12:02:20 +02:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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