JurajNyiri / HomeAssistant-Tapo-Control

Control for Tapo cameras as a Home Assistant component
Apache License 2.0
1.03k stars 85 forks source link

Cameras Control controller: 'bool' object is not subscriptable #393

Closed dm82m closed 12 months ago

dm82m commented 12 months ago

Description

After update to 5.3.3 this error showed up.

Reproduction Steps

Just start home assistant

Expected behavior

No error and working tapo cam

If applicable, add error logs.

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.tapo_control Source: custom_components/tapo_control/init.py:691 Integration: Tapo: Kamerasteuerung (documentation, issues) First occurred: 13:09:59 (7 occurrences) Last logged: 13:14:06

Unable to connect to Tapo: Cameras Control controller: 'bool' object is not subscriptable

Device Firmware

1.3.0 Build 220830 Rel.74146n(4555)

Using stream component

Yes

Does camera work via official integrations?

Yes

Camera has all attributes filled out in developer tools

Yes

HASS Environment

HAOS

Search for similar issues

Yes

Additional information

No response

dm82m commented 12 months ago

5.3.1 works 5.3.2 also broken

JurajNyiri commented 12 months ago

Post full logs that doesn't make any sense. Probably network issues or camera being overloaded.

dm82m commented 12 months ago

@JurajNyiri its reproducible. Glad it makes no sense but it is like I described. Update to 5.3.3 see error above. Downgrade to 5.3.1 and all is good. Can’t post full log, I am on mobile.

JurajNyiri commented 12 months ago

5.3.2 has no changes that could cause this. Closing until logs are posted.

dm82m commented 12 months ago
2023-08-21 13:52:44.218 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration tapo_control which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-21 13:53:00.369 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'sonos', 'mobile_app', 'tag', 'light', 'input_select', 'nuki_ng', 'onvif', 'esphome', 'media_source', 'stt', 'scene', 'logbook', 'auth', 'file_upload', 'easee', 'rest', 'xiaomi_miio', 'analytics', 'hardware', 'lovelace', 'ffmpeg', 'input_boolean', 'ios', 'rest_command', 'history', 'assist_pipeline', 'forecast_solar', 'met', 'utility_meter', 'ipp', 'thread', 'tts', 'notify', 'conversation', 'elgato', 'trace', 'python_script', 'person', 'schedule', 'stream', 'template', 'application_credentials', 'fritz', 'homematicip_local', 'map', 'media_player', 'sun', 'blueprint', 'config', 'input_datetime', 'timer', 'webrtc', 'input_text', 'default_config', 'system_health', 'image_upload', 'fronius', 'sensor', 'zha', 'google_assistant', 'diagnostics', 'input_number', 'tapo_control', 'wemportal', 'waste_collection_schedule', 'cover', 'adguard', 'energy', 'homeassistant_alerts', 'counter', 'device_automation', 'automation', 'group', 'device_tracker', 'zone', 'scheduler', 'onboarding', 'cast', 'input_button', 'repairs', 'search', 'my', 'modbus', 'mbapi2020', 'persistent_notification', 'script', 'hacs'}
2023-08-21 13:53:07.125 INFO (MainThread) [homeassistant.setup] Setting up tapo_control
2023-08-21 13:53:07.125 INFO (MainThread) [homeassistant.setup] Setup of domain tapo_control took 0.0 seconds
2023-08-21 13:53:07.133 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-08-21 13:53:07.899 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-08-21 13:53:08.255 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'bool' object is not subscriptable
2023-08-21 13:53:08.257 WARNING (MainThread) [homeassistant.config_entries] Config entry '192.168.178.63' for tapo_control integration not ready yet: None; Retrying in background
2023-08-21 13:53:08.263 DEBUG (MainThread) [custom_components.tapo_control] async_get_media_source
2023-08-21 13:53:43.821 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-08-21 13:53:44.710 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-08-21 13:53:45.077 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'bool' object is not subscriptable
2023-08-21 13:53:55.474 DEBUG (MainThread) [custom_components.tapo_control] Detected base_url schema: http
2023-08-21 13:53:56.005 DEBUG (MainThread) [custom_components.tapo_control] getCamData
2023-08-21 13:53:56.282 ERROR (MainThread) [custom_components.tapo_control] Unable to connect to Tapo: Cameras Control controller: 'bool' object is not subscriptable
dm82m commented 12 months ago

Maybe it’s a pytapo problem and not an integration problem …

JurajNyiri commented 12 months ago

Fix will be available soon, thank you

JurajNyiri commented 12 months ago

Fixed in 5.3.4.