2bbe8e0e6b
Creating an Astral() instance seems to be surprisingly expensive. This was previously being done in every update, taking a non-trivial proportion of the (actual) CPU used by HA, that is, ignoring sleep/wait/idle states like being blocked on epoll. This patch caches the Astral instance to avoid recomputing it regularly. |
||
---|---|---|
.. | ||
translations | ||
__init__.py | ||
manifest.json | ||
sensor.py | ||
strings.sensor.json |