Skip to content

InsecureRequestWarning floods Home Assistant log when polling local Tapo camera over HTTPS #1310

@maisun

Description

@maisun

Description

After a recent Home Assistant / integration update, my Home Assistant log is being flooded with urllib3 InsecureRequestWarning messages from local Tapo camera HTTPS requests.

The camera/control entities still appear to work, but the warning is logged repeatedly, apparently every polling cycle.

The warning comes from the py.warnings logger, not directly from custom_components.tapo_control, so setting the integration logger to error does not suppress it.

This looks like the integration or pytapo is connecting to the camera locally over HTTPS with certificate verification disabled, which is understandable because Tapo cameras appear to use self-signed / weak local certificates. However, if this is expected behavior, could the integration suppress this specific warning or provide an option to handle SSL verification cleanly?

Reproduction Steps

  1. Install / use Tapo: Cameras Control.
  2. Add a local Tapo camera by IP.
  3. Let Home Assistant run normally.
  4. Observe the Home Assistant logs.
  5. The warning repeats many times.

In my case it is especially visible when the camera is managed by Home Assistant automations and sometimes powered off / privacy mode is toggled.

Expected behavior

The integration should not flood the Home Assistant log with InsecureRequestWarning every polling cycle if unverified HTTPS is expected for local Tapo camera communication.

Possible fixes/questions:

  • Is there already an option to control SSL certificate verification?
  • If verification is intentionally disabled, can urllib3.exceptions.InsecureRequestWarning be suppressed inside the integration/pytapo for the camera requests?
  • Could the integration expose a verify_ssl option, similar to other Home Assistant integrations?
  • Could this warning be logged once at startup/config-entry setup instead of repeatedly?

If applicable, add error logs.

Home Assistant logs many repeated warnings like this for both of my tapo cameras:
2026-05-30 23:16:27.831 WARNING (SyncWorker_31) [py.warnings] /usr/local/lib/python3.14/site-packages/urllib3/connectionpool.py:1110: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.x.x.x'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

Device Firmware

1.5.3

Integration Version

7.1.14

Last known working integration version

??

Using stream component

No

Does camera work via official integrations?

Yes

HASS Environment

HAOS

Search for similar issues

Yes

Additional information

No response

Debug Logs (Required)

2026-05-30 23:16:27.831 WARNING (SyncWorker_31) [py.warnings] /usr/local/lib/python3.14/site-packages/urllib3/connectionpool.py:1110: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.x.x.x'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions