Discovering a device with a binary sensor attached the discovery process crashes in that point resulting no binary_sensor added
Debug log
2023-02-13 14:05:06.256 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up openhasp platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/openhasp/binary_sensor.py", line 34, in async_setup_entry
[
File "/config/custom_components/openhasp/binary_sensor.py", line 35, in <listcomp>
HASPBinarySensor(
File "/config/custom_components/openhasp/binary_sensor.py", line 58, in __init__
self._attr_name = f"{name} binary_sensor {self._gpio}"
AttributeError: 'HASPBinarySensor' object has no attribute '_gpio'
Version of the custom_component
0.6.6
Configuration
Describe the bug
Discovering a device with a binary sensor attached the discovery process crashes in that point resulting no binary_sensor added
Debug log