fjs21 / homebridge-kumo

Control your Kumo cloud devices using Homebridge.
https://www.npmjs.com/package/homebridge-kumo
Apache License 2.0
33 stars 8 forks source link

Fix Preserve override address between API refreshes #98

Closed Jason-Morcos closed 8 months ago

Jason-Morcos commented 8 months ago

Attempts to fix a regression introduced in my previous PR (https://github.com/fjs21/homebridge-kumo/pull/95)

Basically, the override address right now gets set by the Platform as an attribute of the zone table. However, when an API refresh occurs, the zoneTable is flushed.

This PR instead makes overrideAddress a low-level property that's preserved between API refreshes.

Once again, not sure how to test this truly - and my last PR clearly wasn't error free!