Skip to content

Commit

Permalink
feat: replace station seconds remaining with end time (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinteo authored Jun 27, 2020
1 parent 82b01a6 commit a91bd24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions custom_components/opensprinkler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,13 @@ def device_state_attributes(self):
"index",
"is_master",
"running_program_id",
"seconds_remaining",
]:
try:
attributes[attr] = getattr(self._station, attr)
except:
pass

for attr in ["start_time"]:
for attr in ["start_time", "end_time"]:
timestamp = getattr(self._station, attr, 0)
if not timestamp:
attributes[attr] = None
Expand Down
2 changes: 1 addition & 1 deletion custom_components/opensprinkler/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"domain": "opensprinkler",
"name": "OpenSprinkler",
"documentation": "https://github.com/vinteo/hass-opensprinkler",
"requirements": ["pyopensprinkler==0.6.7"],
"requirements": ["pyopensprinkler==0.6.8"],
"dependencies": [],
"codeowners": ["@vinteo"],
"config_flow": true
Expand Down

0 comments on commit a91bd24

Please sign in to comment.