* Reimplement PGLab sensor to use a coordinator
* fix spelling mistake on coordinator name
* rename createDiscoverDeviceInfo function in snake_case
* adding suffix pglab_ to PGLabBaseEntity/PGLabEntity constructor parameters
* Fix docs of PGLabEntity::async_added_to_hass
* make coordinator able to return the sensor native value
* renaming PGLABConfigEntry in PGLabConfigEntry to be consistent with the integration naming
* renamed entry function arguments to config_entry to be less confusing
* pass config_entry to constructor of base class of PGLabSensorsCoordinator
* set the return value type of get_sensor_value
* store coordinator as regular instance attribute
* Avoid to access directly entity from discovery module
* Rearrange get_sensor_value return types
* Make helpers.frame.report_usage work when called from any thread
* Address review comments, update tests
* Add test
* Update test
* Update recorder test
* Update tests
* Conditionally remove ambient sensors if not present
* Create ambient sensors list and use list comprehension
* Update homeassistant/components/nut/sensor.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
* Get temperature data appropriate for hass.config.unit
* Modify temperature_unit for init
* Modify unit's map
* Fix ruff error
---------
Co-authored-by: yunseon.park <yunseon.park@lge.com>
* fix brigtness sensor having percent as unit.
* add test for percent-brightness-sensor
* remove valve position and update tests
* Removed test, because covered by Snapshots
* fix review comments
* move device calss to init.
* fix test
* fix review comments
* add battery sensor back to test fixture
* fix
* Fix ability to remove orphan device in Music Assistant integration
* Add test
* Remove orphaned device entries at startup as well
* adjust mocked client
* Abort SmartThings flow if default_config is not enabled
* Abort SmartThings flow if default_config is not enabled
* Abort SmartThings flow if default_config is not enabled
* Create unique identifiers where multiple gateways are in use
Resolving issue https://github.com/home-assistant/core/issues/134497
* Added migration function to __init__.py
Added migration function to execute upon initialisation, to:
a) remove the erroneously-added config)_entry added to the device (gateway B gets added as a config_entry to a device associated to gateway A), and
b) swap out the non-unique identifiers for genuinely unique identifiers.
* Added tests to simulate migration from bad data scenario (i.e. explicitly executing migrate_entity_unique_ids() from __init__.py)
* Ammendments suggested in first review
* Changes after second review
* Rewrite of test_migrate_config_entry_and_identifiers after feedback
* Converted migrate function into major version, updated tests
* Finalised variable naming convention per feedback, added test to validate config entry migrated to v2
* Hopefully final changes for cosmetic / comment stucture
* Further code-coverage in test_migrate_config_entry_and_identifiers()
* Minor test corrections
* Added test for non-tradfri identifiers
* add night mode toggle
* populate AC's action
* set hvac action on zones
* update tests
* show zones as off if AC is off
---------
Co-authored-by: Franck Nijhof <git@frenck.dev>
* fix for exception for specific ventilation device type + tests
* fix for exception for specific ventilation device type + tests
* New Testset just for fan
* update test_sensor.ambr
* Add fault sensor to balboa
* Use an event instead of sensor for faults
* Don't set fault initially in conftest
* Use event type per fault message code
* Set fault to None in conftest