kuzin2006 / hass_save_eco_bot_sensor

SaveEcoBot sensor for Home Assistant
Creative Commons Zero v1.0 Universal
2 stars 2 forks source link

Ошибка #4

Open D1monUA opened 2 years ago

D1monUA commented 2 years ago

Здравствуйте, не работает сенсор, выдает в логах ошибку: Как можно пофиксить?

Logger: homeassistant.components.sensor Source: custom_components/save_eco_bot/sensor.py:124 Integration: Сенсор (documentation, issues) First occurred: 00:38:05 (1 occurrences) Last logged: 00:38:05

Error while setting up save_eco_bot platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/save_eco_bot/sensor.py", line 263, in async_setup_platform sensors += [SaveEcoBotSensor(client=_client, sensor_model=s) for s in station.sensors()] File "/config/custom_components/save_eco_bot/sensor.py", line 124, in sensors "updated_at": datetime.datetime.strftime(p.time, "%d.%m.%Y, %H:%M:%S"), TypeError: descriptor 'strftime' for 'datetime.date' objects doesn't apply to a 'NoneType' object

VahaC commented 2 weeks ago

https://github.com/andr7000/hass_save_eco_bot_sensor