Disable iot camera creation until more complete (#1480)

Should address [HA Issue
135648](https://github.com/home-assistant/core/issues/https://github.com/home-assistant/core/issues/135648)
This commit is contained in:
Steven B. 2025-01-25 23:19:29 +00:00 committed by GitHub
parent 7f2a1be392
commit ba6d6560f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,6 @@ from .deviceconfig import DeviceConfig, DeviceEncryptionType, DeviceFamily
from .exceptions import KasaException, UnsupportedDeviceError from .exceptions import KasaException, UnsupportedDeviceError
from .iot import ( from .iot import (
IotBulb, IotBulb,
IotCamera,
IotDevice, IotDevice,
IotDimmer, IotDimmer,
IotLightStrip, IotLightStrip,
@ -140,7 +139,8 @@ def get_device_class_from_sys_info(sysinfo: dict[str, Any]) -> type[IotDevice]:
DeviceType.Strip: IotStrip, DeviceType.Strip: IotStrip,
DeviceType.WallSwitch: IotWallSwitch, DeviceType.WallSwitch: IotWallSwitch,
DeviceType.LightStrip: IotLightStrip, DeviceType.LightStrip: IotLightStrip,
DeviceType.Camera: IotCamera, # Disabled until properly implemented
# DeviceType.Camera: IotCamera,
} }
return TYPE_TO_CLASS[IotDevice._get_device_type_from_sys_info(sysinfo)] return TYPE_TO_CLASS[IotDevice._get_device_type_from_sys_info(sysinfo)]
@ -163,7 +163,8 @@ def get_device_class_from_family(
"SMART.TAPOROBOVAC.HTTPS": SmartDevice, "SMART.TAPOROBOVAC.HTTPS": SmartDevice,
"IOT.SMARTPLUGSWITCH": IotPlug, "IOT.SMARTPLUGSWITCH": IotPlug,
"IOT.SMARTBULB": IotBulb, "IOT.SMARTBULB": IotBulb,
"IOT.IPCAMERA": IotCamera, # Disabled until properly implemented
# "IOT.IPCAMERA": IotCamera,
} }
lookup_key = f"{device_type}{'.HTTPS' if https else ''}" lookup_key = f"{device_type}{'.HTTPS' if https else ''}"
if ( if (