Skip to content

Unable to add "Area" on Integration setup  #34

Open
@geeneo

Description

@geeneo

Home Assistant : VM
Home Assistant 2023.5.3
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

Integration stopped working. removed and try to reinstall.

Unable to load areas.

image

Log

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 731, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 845, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 585, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 652, in _async_write_ha_state
attr.update(self.extra_state_attributes or {})
File "/config/custom_components/eskom_loadshedding/sensor.py", line 120, in extra_state_attributes
time_updated = datetime.strptime(stage_updated, time_format)
TypeError: strptime() argument 1 must be str, not None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions