tuya-local
tuya-local copied to clipboard
Use entry.runtime_data to store device data
Currently some runtime data is stored in hass.data. From HA 2024.5, this can be stored in entry.runtime_data instead, which has automatic cleanup. No deprecation of hass.data is mentioned, but making this move will future-proof against that eventually happening.
https://developers.home-assistant.io/blog/2024/04/30/store-runtime-data-inside-config-entry