diff --git a/homeassistant/components/verisure/lock.py b/homeassistant/components/verisure/lock.py index 0e28298b2e8..8f9556643f8 100644 --- a/homeassistant/components/verisure/lock.py +++ b/homeassistant/components/verisure/lock.py @@ -99,6 +99,11 @@ class VerisureDoorlock(CoordinatorEntity[VerisureDataUpdateCoordinator], LockEnt """Last change triggered by.""" return self.coordinator.data["locks"][self.serial_number].get("userString") + @property + def changed_method(self) -> str: + """Last change method.""" + return self.coordinator.data["locks"][self.serial_number]["method"] + @property def code_format(self) -> str: """Return the required six digit code.""" @@ -112,6 +117,11 @@ class VerisureDoorlock(CoordinatorEntity[VerisureDataUpdateCoordinator], LockEnt == "LOCKED" ) + @property + def extra_state_attributes(self): + """Return the state attributes.""" + return {"method": self.changed_method} + async def async_unlock(self, **kwargs) -> None: """Send unlock command.""" code = kwargs.get(