Make 'code' attribute really optional

This commit is contained in:
Andre Basche 2023-05-19 00:48:08 +02:00
parent dfbc24452b
commit 9f130e2e85
4 changed files with 3 additions and 4 deletions

View file

@ -83,7 +83,7 @@ class Hon:
)
except (KeyError, ValueError, IndexError) as error:
_LOGGER.exception(error)
_LOGGER.error(f"Device data - %s", appliance_data)
_LOGGER.error("Device data - %s", appliance_data)
self._appliances.append(appliance)
async def setup(self) -> None: