Update sma.py (#5807)
This commit is contained in:
parent
8951e1bdc0
commit
db6c166abe
1 changed files with 2 additions and 2 deletions
|
@ -68,8 +68,8 @@ def async_setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
sensor_defs = dict(zip(SENSOR_OPTIONS, [
|
||||
(pysma.KEY_CURRENT_CONSUMPTION_W, 'W', 1),
|
||||
(pysma.KEY_CURRENT_POWER_W, 'W', 1),
|
||||
(pysma.KEY_TOTAL_CONSUMPTION_KWH, 'kW/h', 1000),
|
||||
(pysma.KEY_TOTAL_YIELD_KWH, 'kW/h', 1000)]))
|
||||
(pysma.KEY_TOTAL_CONSUMPTION_KWH, 'kWh', 1000),
|
||||
(pysma.KEY_TOTAL_YIELD_KWH, 'kWh', 1000)]))
|
||||
|
||||
# sensor_defs from the custom config
|
||||
for name, prop in config[CONF_CUSTOM].items():
|
||||
|
|
Loading…
Add table
Reference in a new issue