Mullvad integration improvements (#46987)

This commit is contained in:
Franck Nijhof 2021-02-24 13:43:44 +01:00 committed by GitHub
parent b0d56970a5
commit 45b50c53ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 74 additions and 23 deletions

View file

@ -47,6 +47,6 @@ class MullvadBinarySensor(CoordinatorEntity, BinarySensorEntity):
return self._name
@property
def state(self):
def is_on(self):
"""Return the state for this binary sensor."""
return self.coordinator.data[self.id]