Skip to content

Commit

Permalink
set default utc offset to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
pollett committed Dec 13, 2017
1 parent 95cd203 commit 448f872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/sensor/efergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
CONF_CURRENT_VALUES = 'current_values'

DEFAULT_PERIOD = 'year'
DEFAULT_UTC_OFFSET = '0'

SENSOR_TYPES = {
CONF_INSTANT: ['Energy Usage', 'W'],
Expand All @@ -50,7 +51,7 @@

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_APPTOKEN): cv.string,
vol.Optional(CONF_UTC_OFFSET): cv.string,
vol.Optional(CONF_UTC_OFFSET, default=DEFAULT_UTC_OFFSET): cv.string,
vol.Required(CONF_MONITORED_VARIABLES): [SENSORS_SCHEMA]
})

Expand Down

0 comments on commit 448f872

Please sign in to comment.