Increase vallox robustness on startup (#25382)
* Vallox: Increase robustness on startup Experiments showed that timing of websocket requests to the Vallox firmware is critical when fetching new metrics. Tests on different Raspberry Pis and x86 machines showed that those machines with little processing power tend to fail the timing requirments during the busy startup phase of Home Assistant, resulting in the Vallox integration failing to set itself up. This patch catches Websocket's InvalidMessage, which is a symptom of failing the timing requirements. Experiments again showed that on the Raspberry's, this exception is catched once at startup, but the integration is running fine afterwards. * Update __init__.py * Bump to new 2.1.0 version of api. * Bump to api 2.2.0
This commit is contained in:
parent
5ce6ea2df5
commit
738d00fb05
5 changed files with 17 additions and 12 deletions
|
@ -42,7 +42,7 @@ async def async_setup_platform(hass, config, async_add_entities,
|
|||
client,
|
||||
hass.data[DOMAIN]['state_proxy'])
|
||||
|
||||
async_add_entities([device], update_before_add=True)
|
||||
async_add_entities([device], update_before_add=False)
|
||||
|
||||
|
||||
class ValloxFan(FanEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue