This file contains hidden or 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
| substitutions: | |
| name: emporia-vue-v3 | |
| friendly_name: Emporia Vue V3 | |
| area: "Garage" | |
| # Circuit Labels used for publishing to Home Assistant | |
| circuit_1: "Dryer" #"Circuit 1" | |
| circuit_2: "AC Blower/Heat" #"Circuit 2" | |
| circuit_3: "AC Condenser" #"Circuit 3" | |
| circuit_4: "Water Heater" #"Circuit 4" |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| model_to_dict() functiion for SQLAlchemy models | |
| Based on answers by "doog abides" and "daveoncode" from | |
| https://stackoverflow.com/questions/23554119/convert-sqlalchemy-orm-result-to-dict | |
| @author: Hrishikesh Terdalkar | |
| """ |