Commit graph

35 commits

Author SHA1 Message Date
Mr. Bubbles
294e1d4fc4
Fix class name and deprecation version (#120570) 2024-06-26 15:42:03 +02:00
Mr. Bubbles
7eb9875a9e
Add Base class for entities in PyLoad integration (#120563)
* Add Base class for entities

* Remove constructors
2024-06-26 14:45:04 +02:00
Mr. Bubbles
f5ff19d602
Add measurement unit and state_class to sensors in pyLoad (#120551) 2024-06-26 14:14:48 +02:00
Mr. Bubbles
972b85a75b
Fix class and variable naming errors in pyLoad integration (#120547) 2024-06-26 13:36:25 +02:00
epenet
c49fce5541
Force alias when importing sensor PLATFORM_SCHEMA (#120536) 2024-06-26 12:14:13 +02:00
Mr. Bubbles
ba40340f82
Align deviceinfo entries in pyLoad integration (#120478) 2024-06-26 08:45:22 +02:00
Mr. Bubbles
1e5f4c2d75
Add additional sensors to pyLoad integration (#120309) 2024-06-24 18:56:33 +02:00
Mr. Bubbles
237f20de6c
Add DataUpdateCoordinator to pyLoad integration (#120237)
* Add DataUpdateCoordinator

* Update tests

* changes

* changes

* test coverage

* some changes

* Update homeassistant/components/pyload/sensor.py

* use dataclass

* fix ConfigEntry

* fix configtype

* fix some issues

* remove logger

* remove unnecessary else

* revert fixture changes

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-06-24 12:58:37 +02:00
Mr. Bubbles
d095d4e60d
Change suggested data rate unit to Mbit/s in pyLoad (#120275)
Change data rate unit to Mbit/s
2024-06-24 07:53:15 +02:00
Mr. Bubbles
473b3b61eb
Add string and icon translations to pyLoad integration (#120234)
add string and icon translations to pyLoad
2024-06-23 14:25:36 +02:00
Mr. Bubbles
826587abb2
Add DeviceInfo to pyLoad integration (#120232)
* Add device info to pyLoad integration

* Update homeassistant/components/pyload/sensor.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update homeassistant/components/pyload/sensor.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* remove name, add entry_type

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-06-23 13:16:00 +02:00
Mr. Bubbles
28fb361c64
Add config flow to pyLoad integration (#120135)
* Add config flow to pyLoad integration

* address issues

* remove suggested values

* Fix exception

* abort import flow on error

* readd repair issues on error

* fix ruff

* changes

* changes

* exception hints
2024-06-23 12:34:32 +02:00
Mr. Bubbles
f0d5640f5d
Bump pyloadapi to v1.2.0 (#120218) 2024-06-22 21:22:13 -05:00
Mr. Bubbles
7fa74fcb07
Refactor sensor platform of Pyload integration (#119716) 2024-06-21 15:57:36 +02:00
Mr. Bubbles
c077c2a972
Fix pyload async_update SensorEntity raising exceptions (#119655)
* Fix Sensorentity raising exceptions

* Increase test coverage
2024-06-14 20:47:06 +02:00
Mr. Bubbles
7bbd28d385
Migrate library to PyLoadAPI 1.1.0 in pyLoad integration (#116053)
* Migrate pyLoad integration to externa API library

* Add const to .coveragerc

* raise update failed when cookie expired

* fix exceptions

* Add tests

* bump to PyLoadAPI 1.1.0

* remove unreachable code

* fix tests

* Improve logging and exception handling

- Modify manifest.json to update logger configuration.
- Improve error messages for authentication failures in sensor.py.
- Simplify and rename pytest fixtures in conftest.py.
- Update test cases in test_sensor.py to check for log entries and remove unnecessary code.

* remove exception translations
2024-06-13 22:52:19 +02:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] (#112702) 2024-03-08 15:04:07 +01:00
epenet
bb3e0633a4
Add init return type to integrations (#87523)
Add type hints to integrations
2023-02-06 11:37:25 +01:00
epenet
549d1151b7
Use DataRate unit and device class in pyload (#83611) 2022-12-09 13:32:31 +01:00
epenet
474844744b
Improve entity type hints [p] (#77871) 2022-09-06 09:51:33 +02:00
Markus
ed1545fab0
Fix Pyload request content type headers (#74957) 2022-07-11 10:49:31 +02:00
Franck Nijhof
fa09cf663e
Update black to 22.1.0 (#65788) 2022-02-05 14:19:37 +01:00
epenet
8756fa28e2
Add setup type hints [o-q] (#63465)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 16:29:21 +01:00
Marc Mueller
ff853b2d53
Use assignment expressions 19 (#57968) 2021-10-18 15:54:38 +02:00
Erik Montnemery
103e21c278
Move temperature conversions to sensor base class (5/8) (#54475) 2021-08-12 13:26:17 +02:00
Erik Montnemery
c900e3030b
Migrate integrations n-q to extend SensorEntity (#48214) 2021-03-22 19:46:46 +01:00
Andi
14190bd497
Fix pyload API statusServer doesn't take parameters (#35242)
* pyload API statusServer doesn't take parameters

Remove json payload from API call to statusServer for retrieving current download speed. 
See maintainers message in: pyload/pyload#3622 (comment)

Skip duplicated call to update function.

* Lint sensor.py

remove empty line
2020-05-06 02:35:02 +02:00
springstan
b2af1de273
Improve string formatting v9 (#34050)
* Improve string formatting v9

* Address review comments
2020-04-12 17:18:09 +02:00
springstan
8198970af9
Clean up ssl usage (#33960)
* Clean up ssl usage

* Revert config[CONF_SSL] from sonarr, radarr and mfi
2020-04-10 22:01:57 +02: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
Bas Nijholt
21816eeed4 Sort imports according to PEP8 for components starting with "P" (#29775) 2019-12-09 14:29:39 +01:00
Franck Nijhof
1c5e0123c9 Use literal string interpolation in integrations N-Q (f-strings) (#26391) 2019-09-03 11:35:00 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Tobias Sauerwein
048b100eea Clean up docstrings (#22679)
* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
2019-04-03 17:40:03 +02:00
Paulus Schoutsen
f5076188ef
Consolidate all platforms that have no tests (#22096)
* Consolidate

* Fix tests

* Update imports

* Fix import

* Use importlib because integration and package share name

* Fix more tests

* Update .coveragerc and CODEOWNERS
2019-03-16 20:44:05 -07:00
Renamed from homeassistant/components/sensor/pyload.py (Browse further)