-
- Downloads
Add P1 Monitor integration (#54738)
* Init integration P1 Monitor
* Fix build error
* Add quality scale
* Remove last_reset and icon
* Change list to tuple
* Close client on connection exception
* Change min value to 5 (seconds)
* the used python package will close it
* Remove the options flow
* Add session and close client
* Smash to a single DataUpdateCoordinator
* Make a custom update coordinator class
* await the coordinator close
* Add second await the coordinator close
* Close when exit scope
* Removed unused code
* Fix test_sensor on entity_id change
* Fix test on test_sensor
* Transfer SENSOR dict to sensor platform
* device class for cost entity update entity_name
* Revert name in unique id and update sensor test
* Update code based on suggestions
* Fix typing
* Change code to fix mypy errors
Co-authored-by:
Martin Hjelmare <marhje52@gmail.com>
Showing
- CODEOWNERS 1 addition, 0 deletionsCODEOWNERS
- homeassistant/components/p1_monitor/__init__.py 91 additions, 0 deletionshomeassistant/components/p1_monitor/__init__.py
- homeassistant/components/p1_monitor/config_flow.py 57 additions, 0 deletionshomeassistant/components/p1_monitor/config_flow.py
- homeassistant/components/p1_monitor/const.py 23 additions, 0 deletionshomeassistant/components/p1_monitor/const.py
- homeassistant/components/p1_monitor/manifest.json 10 additions, 0 deletionshomeassistant/components/p1_monitor/manifest.json
- homeassistant/components/p1_monitor/sensor.py 287 additions, 0 deletionshomeassistant/components/p1_monitor/sensor.py
- homeassistant/components/p1_monitor/strings.json 17 additions, 0 deletionshomeassistant/components/p1_monitor/strings.json
- homeassistant/components/p1_monitor/translations/en.json 17 additions, 0 deletionshomeassistant/components/p1_monitor/translations/en.json
- homeassistant/generated/config_flows.py 1 addition, 0 deletionshomeassistant/generated/config_flows.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
- requirements_test_all.txt 3 additions, 0 deletionsrequirements_test_all.txt
- tests/components/p1_monitor/__init__.py 1 addition, 0 deletionstests/components/p1_monitor/__init__.py
- tests/components/p1_monitor/conftest.py 59 additions, 0 deletionstests/components/p1_monitor/conftest.py
- tests/components/p1_monitor/test_config_flow.py 62 additions, 0 deletionstests/components/p1_monitor/test_config_flow.py
- tests/components/p1_monitor/test_init.py 44 additions, 0 deletionstests/components/p1_monitor/test_init.py
- tests/components/p1_monitor/test_sensor.py 201 additions, 0 deletionstests/components/p1_monitor/test_sensor.py
- tests/fixtures/p1_monitor/phases.json 74 additions, 0 deletionstests/fixtures/p1_monitor/phases.json
- tests/fixtures/p1_monitor/settings.json 27 additions, 0 deletionstests/fixtures/p1_monitor/settings.json
- tests/fixtures/p1_monitor/smartmeter.json 15 additions, 0 deletionstests/fixtures/p1_monitor/smartmeter.json
Loading
Please register or sign in to comment