Skip to content

Commit

Permalink
Revert cached_property change
Browse files Browse the repository at this point in the history
  • Loading branch information
loopj committed Dec 17, 2024
1 parent c93a543 commit 681ac44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/vantage/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Support for Vantage binary sensor entities."""

from functools import cached_property, partial
from functools import partial

from aiovantage import Vantage
from aiovantage.models import DryContact
Expand Down Expand Up @@ -36,7 +36,7 @@ def __post_init__(self) -> None:
if parent := self.client.thermostats.get(self.obj.parent.id):
self.parent_obj = parent

@cached_property
@property
def is_on(self) -> bool | None:
"""Return True if entity is on."""
return self.obj.triggered

0 comments on commit 681ac44

Please sign in to comment.