G Johansson
2a52de48c5
Remove deprecated v2 api from glances ( #131427 )
2024-11-25 14:29:35 +01:00
G Johansson
3db6d82904
Add name to description placeholders automatically for reauth flows ( #129232 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-30 17:38:59 +01:00
epenet
99335a07e5
Use start_reauth helper method in integration tests (e-g) ( #124785 )
...
* Use start_reauth helper method in integration tests (e-g)
* Include fireservicerota
2024-08-28 15:47:57 +02:00
Joost Lekkerkerker
906d3198e3
Use is in enum comparison in config flow tests F-J ( #114670 )
...
* Use right enum expression F-J
* Fix
2024-04-02 23:01:37 +02:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
Rami Mosleh
2331f89936
Issue warning if glances server version is 2 ( #105887 )
...
* Issue warning if glances server version is 2
* Auto detect api version
* Apply suggestions
* Add HA version deprecation
* Apply suggestions from code review
* update config flow tests
* Fix breaks in ha version
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-04 05:17:43 +01:00
Rami Mosleh
785b46af22
Add re-auth flow to glances integration ( #100929 )
...
* Add reauth flow to glances integration.
* add reauth string
* add reauth strings
2023-09-26 17:46:12 +02:00
Rami Mosleh
31e9ca0099
Handle authorization error in glances config flow ( #100866 )
...
* Handle authroization error in glances config flow
* Remove validate_input method and expections
* update tests
2023-09-26 14:51:04 +02:00
Rami Mosleh
ca44242095
Allow glances entries with same IP but different ports ( #99536 )
2023-09-03 19:22:59 +02:00
Rami Mosleh
8cbe394028
Use get_ha_sensor_data
method to update glances sensors ( #83983 )
...
* Use `get_ha_sensor_data` method to update sensor state
* update tests
* Use `get_ha_sensor_data` to validate connection
* Update test_sensor.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-03-31 14:27:37 +02:00
Rami Mosleh
328eda044a
Use DataUpdateCoordinator for glances ( #72748 )
...
* use DataUpdateCoordinator for glances
add tests to increase coverage
fix test_config_flow.py
fix codecov/patch
remove unused const, minor tweaks
remove invalid_auth test as it is not implemented
fix type hints
* change to async_forward_entry_setups
* Use Dataupdatecoordinator for glances
* minor fixex
* minor fixes
* minor fix
* remove support_versions const
* coe cleanup
* address comments
* fix sensor native_value
* Rename entry to entry_data in `get_api`
* Remove whitespace in sensor name
2022-11-03 10:02:25 +01:00
Rami Mosleh
b303c8e040
Refactor version key in glances
( #77541 )
...
* update version key
* Fix merge mistake
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-08-31 12:52:52 +02:00
epenet
9cdb7bba4c
Fix glances config-flow flaky test ( #77549 )
2022-08-30 11:57:42 -05:00
Rami Mosleh
86b968bf79
Migrate Glances to new entity naming style ( #76651 )
...
* Migrate Glances to new entity naming style
* minor fixes
2022-08-12 09:50:27 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
Erik Montnemery
39bc127dd6
Prevent 3rd party lib from opening sockets in glances tests ( #56345 )
2021-09-17 22:22:44 -10:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Rami Mosleh
c66106ee98
Add Glances sensors dynamically ( #28639 )
...
* Add temp_sensors to glances dynamically
* unsub from updates when sensor is disabled
* dynamicall add sensors
* change "device_name" to "mnt_point"
* remove unnecessary logging
* update sensor.py
* update test_config_flow.py
* remove commented code
2020-02-10 15:02:14 -08:00
Rami Mosleh
09f9875ccf
Glances config flow ( #27221 )
...
* Glances Integration with config flow
* Glances Integration with config flow
* fix description texts
* Glances Integration with config flow
* Glances Integration with config flow
* fix description texts
* update .coverage.py
* add codeowner
* add test_options
* Fixed typos, Added import, fixed tests
* sort imports
* remove commented code
2019-10-21 10:17:21 +02:00