Update Verisure package to 2.6.1 (#89318)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: RobinBolder <33325401+RobinBolder@users.noreply.github.com>
Co-authored-by: Tobias Lindaaker <tobias@thobe.org>
This commit is contained in:
Niels Perfors 2023-03-26 19:32:25 +02:00 committed by GitHub
parent 6e92dac61f
commit 1baadc1d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 294 additions and 219 deletions

View file

@ -109,9 +109,9 @@ class VerisureEthernetStatus(
@property
def is_on(self) -> bool:
"""Return the state of the sensor."""
return self.coordinator.data["ethernet"]
return self.coordinator.data["broadband"]["isBroadbandConnected"]
@property
def available(self) -> bool:
"""Return True if entity is available."""
return super().available and self.coordinator.data["ethernet"] is not None
return super().available and self.coordinator.data["broadband"] is not None