This uses a filter argument to the websocket subscription function to
only subscribe to entities that are currently being displayed on the
device screen.
The Home Assistant API for this is not currently implemented in the
client library so we needed to patch the library slightly.
For more details about this API see:
https://github.com/home-assistant/home-assistant-js-websocket/issues/511
It looks like the files in this project haven't consistantly been run
through prettier. This gets them back in sync with the prettier
configuration.
We should setup a pre-commit hook that runs prettier so they don't get
out of sync again.
The active-states configuration file has been converted from JSON to YAML format. This change includes deleting the existing JSON file, creating a new YAML file, and updating the dependencies and respective usages in the code by adding the js-yaml package. This modification aims to use YAML format to improve readability and ease of use.