The first ping was successful but immediately after there was an error in my logs.
A have gotten around this by just deleting this HACS integration and using the method from #13, however I would like to be able to use integrations over yaml, where possible.
Debug log
healthchecksio: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 482, in async_device_update
await task
File "/config/custom_components/healthchecksio/binary_sensor.py", line 45, in async_update
if self.unique_id == check.get("ping_url").split("/")[-1]:
File "/config/custom_components/healthchecksio/binary_sensor.py", line 57, in unique_id
return self.config.get("ping_url").split("/")[-1]
AttributeError: 'NoneType' object has no attribute 'split'
Version of the custom_component
21.3.0
Configuration
Describe the bug
The first ping was successful but immediately after there was an error in my logs. A have gotten around this by just deleting this HACS integration and using the method from #13, however I would like to be able to use integrations over yaml, where possible.
Debug log