|
发表于 2021-8-28 21:55:45
|
显示全部楼层
2021-08-28 21:53:56 DEBUG (MainThread) [custom_components.peacefair_energy] protocol=rtuoverudp
2021-08-28 21:53:57 DEBUG (MainThread) [custom_components.peacefair_energy] Got Data {'voltage': 219.2, 'current': 0.24, 'power': 34.1, 'energy': 0.016, 'frequency': 49.9, 'power_factor': 0.65}
2021-08-28 21:53:57 DEBUG (MainThread) [custom_components.peacefair_energy] Finished fetching peacefair_energy data in 0.372 seconds
2021-08-28 21:53:58 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up peacefair_energy platform for sensor
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/home/homeassistant/.homeassistant/custom_components/peacefair_energy/sensor.py", line 96, in async_setup_entry
os.makedirs(STORAGE_PATH, exist_ok=True)
File "/usr/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '.storage'
2021-08-28 21:54:26 ERROR (MainThread) [homeassistant.components.updater] Timeout fetching Home Assistant update data |
|