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
Antonino Piazza
9919dd500d
Improve code quality in huawei_lte ( #76583 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-08-11 11:03:12 +02:00
Ville Skyttä
b749622c01
Migrate Huawei LTE to new entity naming style ( #75303 )
2022-07-20 22:28:53 +03:00
Antonino Piazza
4209d7733b
Add huawei_lte wifi guest network switch ( #71035 )
2022-07-08 23:09:03 +03:00
Paulus Schoutsen
2b4bb49eb7
Make device tracker entities work better ( #63328 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-01-04 23:16:43 -08:00
Ville Skyttä
3e3fb52dfa
Huawei LTE simplifications ( #62770 )
...
* Use enum types rather than strs in sensor type hints
* Name sensor meta fields same as in SensorEntityDescription
* Make integration shared state a NamedTuple
* Use dataclasses instead of attr
2021-12-26 09:17:59 +02:00
Franck Nijhof
542aef2fe1
Migrate switch device classes to StrEnum ( #60658 )
2021-11-30 15:38:45 -08:00
Ville Skyttä
91a2b96da0
Implement stable unique id for Huawei LTE, requires credentials on setup ( #49878 )
2021-07-11 21:25:00 -07:00
Ruslan Sayfutdinov
0301706fc6
Define AddEntitiesCallback type ( #49812 )
2021-04-29 12:28:14 +02:00
jan iversen
017e32a0cb
Integrations h*: Rename HomeAssistantType to HomeAssistant. ( #49590 )
2021-04-23 09:49:02 +02:00
Marc Mueller
5cdd945f44
Update typing 08 ( #48058 )
2021-03-18 09:25:40 +01:00
Ville Skyttä
cf83c6bf00
Complete Huawei LTE type hints, make mypy check them ( #41503 )
2020-10-08 21:02:47 +02:00
Ville Skyttä
56f0a68c49
Add and fix some Huawei LTE type hints ( #41196 )
2020-10-05 11:21:48 +02:00
Erik Montnemery
066e921a8b
Rename SwitchDevice to SwitchEntity ( #34673 )
2020-04-26 18:50:37 +02:00
Bas Nijholt
80c344d3a8
Sort imports according to PEP8 for huawei_lte ( #29664 )
2019-12-09 19:06:25 +01:00
Ville Skyttä
2baee4ac3e
Add Huawei LTE mobile data switch support ( #28188 )
...
* Add Huawei LTE mobile data switch support
* Remove stale comment
* Do HA state updates in base entity
2019-10-26 13:29:36 +03:00