Commit graph

20 commits

Author SHA1 Message Date
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
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
09dca3cd94
Remove invalid unit of measurement from Glances (#73983) 2022-06-28 01:46:58 +02:00
avee87
8865a58f74
Improve Glances entity descriptions, add long term statistics (#73049) 2022-06-23 21:34:08 +02:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 (#65788) 2022-02-05 14:19:37 +01:00
epenet
c060b5926c
Use new SensorDeviceClass enum in glances (#61613)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-12 20:23:34 -08:00
Adrian Huber
b64b926e13
Add raid monitoring to glances (#56623) 2021-09-28 10:04:08 +02:00
Erik Montnemery
6de6a5dc14
Move temperature conversions to sensor base class (3/8) (#54469)
* Move temperature conversions to entity base class (3/8)

* Fix FritzBox sensor

* Fix tests
2021-08-12 14:23:56 +02:00
Marc Mueller
0552b9c783
Use EntityDescription - glances (#53559) 2021-07-27 17:24:18 +02:00
Marc Mueller
5c3fb77660
Use NamedTuple - glances (#53297) 2021-07-21 22:27:01 -07:00
Erik Montnemery
3e09787d85
Set device_class on temperature sensors F-K (#52918)
* Set device_class on temperature sensors F-K

* Fix juicenet sensor
2021-07-12 20:32:55 +02:00
Zixuan Wang
21c72fa559
Fix missing glances temperature sensors (#46086)
* Fix missing glances temperature sensors (#44899)

* Revert matching rules for Glances

* Shorter if statement

Co-authored-by: J. Nick Koston <nick@koston.org>

* Revert long-line if statement

* Update if statement

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-03-25 09:19:11 +01:00
Guillaume Duveau
c27c958a4d
Temperatures, fan and battery in Glances sensors (#43500)
* Temperatures, fan and battery in Glances sensors

* Lint PR #43500
2020-12-14 10:46:44 +01:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
Philip Allgaier
25607c7129
Use MDI CPU icon for glances (#36736)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-06-16 14:44:37 +02:00
springstan
f1a0ca7cd3
Add and use percentage constant (#32094)
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
Ville Skyttä
3e23a3a860
Add and use bunch of data size and rate related constants (#31781)
Also fix a few units to match the corresponding data.
2020-02-13 08:52:57 -08: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