core/homeassistant/components/pglab
pglab-electronics cc30823726
Reimplement PGLab sensor to use a coordinator (#139789)
* 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
2025-03-05 20:33:59 +01:00
..
__init__.py Reimplement PGLab sensor to use a coordinator (#139789) 2025-03-05 20:33:59 +01:00
config_flow.py
const.py
coordinator.py Reimplement PGLab sensor to use a coordinator (#139789) 2025-03-05 20:33:59 +01:00
discovery.py Reimplement PGLab sensor to use a coordinator (#139789) 2025-03-05 20:33:59 +01:00
entity.py Reimplement PGLab sensor to use a coordinator (#139789) 2025-03-05 20:33:59 +01:00
manifest.json
quality_scale.yaml
sensor.py Reimplement PGLab sensor to use a coordinator (#139789) 2025-03-05 20:33:59 +01:00
strings.json
switch.py Reimplement PGLab sensor to use a coordinator (#139789) 2025-03-05 20:33:59 +01:00