* Youtube Component Support SensorStateClass in sensor.py
Added support for long term statistics by including the appropriate state class type for subscriber and view counts.
* Update sensor.py
* Fix
---------
Co-authored-by: Joostlek <joostlek@outlook.com>
* Add default device class display precision for Sensor
* Renaming, docstrings, cleanup
* Simplify units list
* Fix tests
* Fix missing precision when suggested is specified
* Update snapshots
* Fix when unit of measurement is not valid
* Fix tests
* Fix deprecated unit usage
* Fix goalzero tests
The sensor native_value method was accessing the data dict and trowing,
since the mock did not have any data for the sensors.
Since now the precision is always specified (it was missing for those
sensors), the throw was hitting async_update_entity_options in _update_suggested_precision.
Previously, async_update_entity_options was not called since it had no
precision.
* Fix metoffice
* Fix smartthings
* Add default sensor data for Tesla Wall Connector tests
* Update snapshots
* Revert spaces
* Update smartthings snapshots
* Add missing sensor mock for tesla wall connector
* Address review comments
* Add doc comment
* Add cap to doc comment
* Update comment
* Update snapshots
* Update comment
* Add WS command to help reset custom entity_id
* Calculate suggested object id from entity properties
* Fix logic and add additional tests
* Adjust test
* Update folder_watcher test
* Handle current entity id matches the automatic entity id
* Don't store calculated_object_id
* Update snapshots
* Update snapshots
* Update test
* Tweak logic for reusing current entity_id
* Improve test
* Don't assign same entity_id to several entities
* Prioritize custom entity name
* Update snapshots
* Update snapshots
* initial
* remove dupe name definition
* snapshot update
* name def updates
* test update for new entity name
* remove attributes
* icon translations
* merge fixes
* Snapshot update post merge
* update to class initialisation
* move entity delete to coordinator
* remove some comments
* move known_alarms to coordinator
* test_switch update for syrupy change
* listener and sets
* check self.available
* remove refresh from conftest
* test update
* test tweak
* move listener to switch platform
* updates revew
* SWITCH_DOMAIN
* Add first status sensor and coordinator
* New snapshot
* Add comment
* Add test for forbidden status endpoint
* Changed comment
* Fixed translation
* Minor changes and code optimization
* Add common translation; minor tweaks
* Moved translation from common to integration