slesinger / HomeAssistant-PREdistribuce

Home Assistant integration to display info about energy plan
https://slesinger.info
Apache License 2.0
11 stars 8 forks source link

Nejde nakonfigurovat #2

Closed masch7319 closed 2 years ago

masch7319 commented 3 years ago

Zdravím, nedaří se mi senzor rozjet, postupoval jsem podle návodu, ale v logu HA se při startu zobrazí chyba:

2020-09-23 12:46:49 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up predistribuce platform for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/predistribuce/binary_sensor.py", line 45, in setup_platform for pre in conf_periods: TypeError: 'NoneType' object is not iterable

V config mám jen: binary_sensor:

Kde mohu mít chybu? Díky moc!

slesinger commented 2 years ago

Diky za reportovani chyby, kterou jsem snad ted jiz opravil. Problem byl, ze program se spolehal na to, ze v konfiguraci budou i periods. Zkuste svou konfiguraci po aktualizaci modulu. Diky.