Joost Lekkerkerker
8b1db37a85
Use snapshots in Glances sensor tests ( #107159 )
...
* Use snapshots in Glances sensor tests
* yes
2024-01-04 21:32:31 +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
f71e01f652
Improve glances tests ( #106402 )
2023-12-27 12:55:10 +01:00
Jan-Philipp Benecke
04a497343d
Update f-g* tests to use entity & device registry fixtures ( #103841 )
2023-11-12 13:07:38 +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
Dominik
239f5fe56b
Fix glances raid plugin data ( #94597 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-06-23 14:36:43 +02:00
Dominik
f6d3b0618e
Glances: Add error handling for invalid sensor data ( #93542 )
...
* Set sensor to Unavailable
when native_value is invalid
* Add unit tests for sensors
2023-05-30 21:35:33 -04:00
epenet
6836e15d98
Add type hints to tests ( #92477 )
2023-05-04 11:25:35 +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