Commit Graph

386 Commits (4be7b626075ff83eb43a2f67dc3ada58fc4d0195)

Author SHA1 Message Date
GitHub Action d1ecc418bb [ci skip] Translation update 2023-01-19 00:25:04 +00:00
GitHub Action d2e11797f8 [ci skip] Translation update 2023-01-17 00:24:30 +00:00
Ville Skyttä f0e6f45e43
Remove signal strength state class from Huawei LTE transmit power sensor (#85973)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-01-16 23:24:50 +01:00
GitHub Action b81453cb6b [ci skip] Translation update 2023-01-16 00:24:22 +00:00
GitHub Action 77f9548e51 [ci skip] Translation update 2023-01-15 00:25:52 +00:00
GitHub Action dffc913f9e [ci skip] Translation update 2023-01-14 00:22:57 +00:00
Ville Skyttä a5a079fb06
Huawei LTE sensor improvements (#84019)
* Use `None` for unknown states consistently

* Use huawei_lte_api NetworkModeEnum instead of magic strings

* Recognize some new sensor items

* Exclude current day duration sensor

* Fix current month upload/download types

* Add current day transfer

* Extract lambdas used in multiple spots to named functions

* Formatter naming consistency improvements
2023-01-13 18:27:57 +01:00
Ville Skyttä ae302bbec0
Make use of str.removeprefix and .removesuffix (#85584) 2023-01-13 12:19:38 +01:00
Ville Skyttä 4c31317c06
Key Huawei LTE routers in hass.data by config entry rather than unique id (#85788)
Key routers in hass.data by config entry rather than unique id

There's no particular reason to key them by the unique id; the config
entry id is a stronger, always available guarantee, and a much more
common convention across the HA codebase.

At some point, we might conceivably support devices we can't find a
proper unique id for; this would work for that purpose as well.
2023-01-13 09:20:24 +01:00
Ville Skyttä c625051665
Improve Huawei LTE SSDP inclusion (#85572)
* Probe Huawei LTE API for device support on SSDP match

More or less as expected, the loosening of SSDP/UPnP data matches done
in #81643 started to yield false positives, as in #85402.

Coming up with robust matches solely based on the SSDP/UPnP data still
does not seem possible, so keep the matches as loose as they were made,
but additionally invoke a probe request on the API to determine if the
device looks like a supported one.

* Probe only after unique id checks

Prevents throwaway probes for discoveries already in progress.

* Fix SSDP result URL test, add missing assert on it
2023-01-12 06:47:38 +01:00
Ville Skyttä ccd7f09de6
Upgrade huawei-lte-api to 1.6.11 (#85669) 2023-01-11 17:44:55 +01:00
GitHub Action b3ab0a0199 [ci skip] Translation update 2022-12-29 00:23:20 +00:00
GitHub Action cfa08c5229 [ci skip] Translation update 2022-12-15 00:24:38 +00:00
Ville Skyttä f02b6f1119
Huawei LTE SSDP improvements (#81643)
* Recognize more SSDP friendly names as "ours"

* Trigger on SoyeaLink devices

* Pass discovered URL through context, it does not persist via user_input

* Use manufacturer from SSDP

* Actually use serial number if available, update URL for configured

* Remove heuristic friendly name filtering against non-LTE devices
2022-12-14 23:48:25 +01:00
epenet b7b7cdcfcf
Refactor Huawei LTE to use Entity Description (#83904)
* Refactor Huawei LTE to use Entity Description

* Apply suggestions from code review

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
2022-12-13 19:48:46 +01:00
GitHub Action f19a1147fe [ci skip] Translation update 2022-12-11 00:26:24 +00:00
epenet 535aba10ee
Use DataRate unit and device class in integrations (#83610) 2022-12-10 11:41:44 +01:00
GitHub Action f25017313a [ci skip] Translation update 2022-12-09 00:24:29 +00:00
GitHub Action 1f3e5fb4fc [ci skip] Translation update 2022-12-07 00:24:08 +00:00
GitHub Action 03154e1d83 [ci skip] Translation update 2022-12-03 00:21:50 +00:00
GitHub Action 230b50d099 [ci skip] Translation update 2022-11-29 00:26:01 +00:00
Marc Mueller 63d519c1a8
Spelling updates (#82867) 2022-11-28 16:51:43 +01:00
GitHub Action b65d8cc1b3 [ci skip] Translation update 2022-11-28 00:23:09 +00:00
GitHub Action 797dc51bc5 [ci skip] Translation update 2022-11-26 00:22:30 +00:00
GitHub Action f3b3193f7a [ci skip] Translation update 2022-11-25 00:24:19 +00:00
GitHub Action eaf6d43508 [ci skip] Translation update 2022-11-23 00:26:26 +00:00
GitHub Action 3bea04e387 [ci skip] Translation update 2022-11-21 00:26:41 +00:00
GitHub Action 8b4dbbe593 [ci skip] Translation update 2022-11-10 00:27:41 +00:00
Ville Skyttä e690db9ba6
Upgrade huawei-lte-api to 1.6.7, fixes empty username issues (#81751)
Recentish versions of huawei-lte-api behave differently with regards to
empty/default username compared to the older versions this integration
was originally written against. 1.6.5+ changes the behavior so that our
existing implementation works as expected when no username is supplied
for the config entry.

https://github.com/Salamek/huawei-lte-api/releases/tag/1.6.4
https://github.com/Salamek/huawei-lte-api/releases/tag/1.6.5
https://github.com/Salamek/huawei-lte-api/releases/tag/1.6.6
https://github.com/Salamek/huawei-lte-api/releases/tag/1.6.7
2022-11-09 15:51:33 +01:00
GitHub Action 0311063c44 [ci skip] Translation update 2022-11-05 00:28:23 +00:00
GitHub Action c7fc51cfa5 [ci skip] Translation update 2022-11-04 00:29:52 +00:00
epenet 2214fff3b4
Cleanup device_tracker imports (#81139) 2022-10-28 17:40:37 +02:00
GitHub Action 5a77c8f96f [ci skip] Translation update 2022-10-22 00:35:23 +00:00
GitHub Action 265e2741e7 [ci skip] Translation update 2022-10-20 00:32:39 +00:00
GitHub Action 388328adba [ci skip] Translation update 2022-10-17 00:36:39 +00:00
GitHub Action 3c48ce9ee7 [ci skip] Translation update 2022-10-16 00:44:12 +00:00
GitHub Action 230fe4453f [ci skip] Translation update 2022-10-12 00:40:30 +00:00
Ville Skyttä 9dd894a36e
Huawei LTE logging related tweaks (#79854)
* Remove no longer needed dicttoxml logging config

huawei-lte-api 1.5+ no longer uses dicttoxml.

* Fix `loggers` entry
2022-10-11 21:49:02 +02:00
GitHub Action eac1a1e513 [ci skip] Translation update 2022-10-11 00:31:56 +00:00
GitHub Action aca340de1c [ci skip] Translation update 2022-10-10 00:34:37 +00:00
GitHub Action ed565a6eb1 [ci skip] Translation update 2022-10-09 00:30:44 +00:00
GitHub Action f58e1513e2 [ci skip] Translation update 2022-10-08 00:29:46 +00:00
Ville Skyttä 9b44cf0127
Add Huawei LTE reauth flow (#78005)
* Add Huawei LTE reauth flow

* Upgrade huawei-lte-api to 1.6.3, use LoginErrorInvalidCredentialsException
2022-10-07 12:24:09 +02:00
epenet b5402f9b57
Import device tracker constants from root (#78242) 2022-09-12 20:50:44 -04:00
epenet be07bb7976
Improve type hints in file and huawei_lte notify (#77648) 2022-09-04 22:41:46 +02:00
epenet 2a8109304f
Use _attr_should_poll in components [h-i] (#77270) 2022-08-26 10:20:38 +02:00
GitHub Action d7724235ff [ci skip] Translation update 2022-08-26 00:27:16 +00:00
GitHub Action ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
GitHub Action bec8e544f4 [ci skip] Translation update 2022-08-14 00:25:47 +00:00
GitHub Action 6e03b12a93 [ci skip] Translation update 2022-08-13 00:25:00 +00:00