-
-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Added average temperature for the day before and the current period #6883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
59fdb92
c9a8866
e041326
c5980b1
bd03e6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,12 +16,12 @@ | |
| from homeassistant.components.sensor import PLATFORM_SCHEMA | ||
| from homeassistant.const import ( | ||
| CONF_USERNAME, CONF_PASSWORD, | ||
| CONF_NAME, CONF_MONITORED_VARIABLES) | ||
| CONF_NAME, CONF_MONITORED_VARIABLES, TEMP_CELSIUS) | ||
| from homeassistant.helpers.entity import Entity | ||
| from homeassistant.util import Throttle | ||
| import homeassistant.helpers.config_validation as cv | ||
|
|
||
| REQUIREMENTS = ['pyhydroquebec==1.0.0'] | ||
| REQUIREMENTS = ['pyhydroquebec==1.1.0'] | ||
|
|
||
| _LOGGER = logging.getLogger(__name__) | ||
|
|
||
|
|
@@ -36,28 +36,19 @@ | |
| MIN_TIME_BETWEEN_UPDATES = timedelta(hours=1) | ||
|
|
||
| SENSOR_TYPES = { | ||
| 'period_total_bill': ['Current period bill', | ||
| PRICE, 'mdi:square-inc-cash'], | ||
| 'period_length': ['Current period length', | ||
| DAYS, 'mdi:calendar-today'], | ||
| 'period_total_days': ['Total number of days in this period', | ||
| DAYS, 'mdi:calendar-today'], | ||
| 'period_mean_daily_bill': ['Period daily average bill', | ||
| PRICE, 'mdi:square-inc-cash'], | ||
| 'period_mean_daily_consumption': ['Period daily average consumption', | ||
| KILOWATT_HOUR, 'mdi:flash'], | ||
| 'period_total_consumption': ['Total Consumption', | ||
| KILOWATT_HOUR, 'mdi:flash'], | ||
| 'period_lower_price_consumption': ['Period Lower price consumption', | ||
| KILOWATT_HOUR, 'mdi:flash'], | ||
| 'period_higher_price_consumption': ['Period Higher price consumption', | ||
| KILOWATT_HOUR, 'mdi:flash'], | ||
| 'yesterday_total_consumption': ['Yesterday total consumption', | ||
| KILOWATT_HOUR, 'mdi:flash'], | ||
| 'yesterday_lower_price_consumption': ['Yesterday lower price consumption', | ||
| KILOWATT_HOUR, 'mdi:flash'], | ||
| 'yesterday_higher_price_consumption': | ||
| ['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
| 'period_total_bill': ['Current period bill', PRICE, 'mdi:square-inc-cash'], | ||
| 'period_length': ['Current period length', DAYS, 'mdi:calendar-today'], | ||
| 'period_total_days': ['Total number of days in this period', DAYS, 'mdi:calendar-today'], | ||
| 'period_mean_daily_bill': ['Period daily average bill', PRICE, 'mdi:square-inc-cash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (90 > 79 characters) |
||
| 'period_mean_daily_consumption': ['Period daily average consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (102 > 79 characters) |
||
| 'period_total_consumption': ['Total Consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (82 > 79 characters) |
||
| 'period_lower_price_consumption': ['Period Lower price consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (101 > 79 characters) |
||
| 'period_higher_price_consumption': ['Period Higher price consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (103 > 79 characters) |
||
| 'yesterday_total_consumption': ['Yesterday total consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (95 > 79 characters) |
||
| 'yesterday_lower_price_consumption': ['Yesterday lower price consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (107 > 79 characters) |
||
| 'yesterday_higher_price_consumption': ['Yesterday higher price consumption', KILOWATT_HOUR, 'mdi:flash'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (109 > 79 characters) |
||
| 'yesterday_average_temperature': ['Yesterday average temperature', TEMP_CELSIUS, 'mdi:thermometer'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (104 > 79 characters) |
||
| 'period_average_temperature': ['Period average temperature', TEMP_CELSIUS, 'mdi:thermometer'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line too long (98 > 79 characters) |
||
| } | ||
|
|
||
| PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (93 > 79 characters)