core/tests/components/huawei_lte
Ville Skyttä 2a4ab3d53d
Support HTTPS connections to Huawei LTE devices (#86119)
* Support HTTPS connections to Huawei LTE devices

Not all devices support HTTPS, so we default to plain HTTP still.

Ones that do are very likely to have certificates that do not pass
hostname verification, and are either self signed or issued by an
untrusted CA. Add option to use unverified HTTPS to make it possible to
connect to these, and when in effect, filter urllib3's related warnings
about insecure connections to the hostname in question.

* Use common config key and strings for certificate verification settings

Even though the wording might be slightly suboptimal here, it's better
to be consistent across the codebase than to finetune on this level.

This also switches the default the other way around: verification is
now disabled by default. This is not a good general default, but for
this particular case setups where the verification would succeed would
be so rare and require considerable local setup that it's very
unlikely to happen in practice.

* Add config flow tests

* Mock logout for better test coverage

* Set up custom requests session only when using unverified https

* Add https config flow test case

* Make better use of verify SSL default
2023-11-27 18:03:29 +01:00
..
__init__.py Add Huawei LTE restart and clear traffic statistics buttons (#91967) 2023-11-23 19:35:35 +01:00
test_button.py Add Huawei LTE restart and clear traffic statistics buttons (#91967) 2023-11-23 19:35:35 +01:00
test_config_flow.py Support HTTPS connections to Huawei LTE devices (#86119) 2023-11-27 18:03:29 +01:00
test_device_tracker.py Add type hints to integration tests (part 10) (#87985) 2023-02-13 10:25:26 +01:00
test_sensor.py Add type hints to integration tests (part 10) (#87985) 2023-02-13 10:25:26 +01:00
test_switches.py Add Huawei LTE restart and clear traffic statistics buttons (#91967) 2023-11-23 19:35:35 +01:00