Skip to content

Commit

Permalink
fix hass position
Browse files Browse the repository at this point in the history
  • Loading branch information
fiva authored and fiva committed Dec 5, 2020
1 parent bdd480d commit 5e698bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/nhc2/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self, nhc2shutter: CoCoShutter):
self._is_closed = (nhc2shutter.position == 0)
nhc2shutter.on_change = self._on_change

@property
def current_cover_position(self):
"""Return current position of cover. 0 is closed, 100 is open."""
return self._position
Expand Down

0 comments on commit 5e698bd

Please sign in to comment.