mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
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:
@@ -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 (
|
||||||
|
Reference in New Issue
Block a user