Cache checking for entity exposure in emulated_hue (#37260)
Since we now base all of exposure checks on data that will not change, we can cache the result instead of calculating it every loop. This change complements the work done in #32718
This commit is contained in:
1 parent
24289d5dbb
commit
7746ecc9fb
3 files changed
+24
-4
No files matched your search
@@ -181,6 +181,8 @@ def hue_client(loop, hass_hue, aiohttp_client):
|
||||
"climate.hvac": {emulated_hue.CONF_ENTITY_HIDDEN: False},
|
||||
# Expose HeatPump
|
||||
"climate.heatpump": {emulated_hue.CONF_ENTITY_HIDDEN: False},
|
||||
# No expose setting (use default of not exposed)
|
||||
"climate.nosetting": {},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user