Closed bendikrb closed 9 months ago
Hi
Thank you for this PR!
I strive to maintain the code backward compatible. Could you add a function to utils could be "getHass" with the gateway as the listener?
I am not sure that "homeassistant.components.zha.core.gateway" exists in older ZHA versions - can you check when that appeared? If that's more than 18 months ago I'll go with it, but otherwise the import can be moved locally to the appropriate try block.
Note: I am modifying the code for backwards compatibility.
TODO: add checks to support HA < 2023.10