mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Update sma.py (#5807)
This commit is contained in:
parent
8951e1bdc0
commit
db6c166abe
@ -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…
x
Reference in New Issue
Block a user