-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from ocrease/AwayMode
Improved user experience of Away mode
- Loading branch information
Showing
8 changed files
with
165 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-only | ||
"""Constants used by multiple Heatmiser Neo modules.""" | ||
|
||
from neohubapi.neohub import NeoStat | ||
|
||
|
||
def set_away(state: bool, dev: NeoStat) -> None: | ||
"""Set away flag on device.""" | ||
dev.away = state | ||
if state: | ||
dev.target_temperature = dev._data_.FROST_TEMP | ||
|
||
|
||
def cancel_holiday(dev: NeoStat) -> None: | ||
"""Cancel holiday on device.""" | ||
dev.holiday = False |
Oops, something went wrong.