Hi There
I am writing a custom integration, where i want to get data from a WiFi relay device. I am polling the data by using the aiohttp.session.get() command inside a try, except block.I am polling the device every 10 secs, by using and inheriting from the DataUpdateCoordinator and overriding the _async_update_data function.
Now as long as the device is available over WiFi, everything works fine, but as soon as the device is disconnected (i.e. switched off), the _async_update_data function of the DataUpdateCoordinator throws a “An integer is required” exception. which I cannot catch anywhere. After the exception has been thrown, the coordinator does not fire the _async_update_data event anymore.
Before that, I can catch and handle the timeout exception of the aiohttp client, but the integer required exception throws nevertheless.
Is this a bug in the coordinator, or did I miss anything? Does eventually anyone know a workaround?
Many thanks.
Daniel