diff --git a/zhaquirks/tuya/ts0601_sensor.py b/zhaquirks/tuya/ts0601_sensor.py index 66113fd353..02a3b11350 100644 --- a/zhaquirks/tuya/ts0601_sensor.py +++ b/zhaquirks/tuya/ts0601_sensor.py @@ -1,7 +1,5 @@ """Tuya temp and humidity sensors.""" -from zigpy.quirks.v2.homeassistant import EntityType -from zigpy.quirks.v2.homeassistant.binary_sensor import BinarySensorDeviceClass from zigpy.quirks.v2.homeassistant.sensor import SensorDeviceClass, SensorStateClass import zigpy.types as t @@ -90,13 +88,7 @@ device_class=SensorDeviceClass.ILLUMINANCE, state_class=SensorStateClass.MEASUREMENT, ) - .tuya_binary_sensor( - dp_id=1, - attribute_name="zone_status", - device_class=BinarySensorDeviceClass.OPENING, - fallback_name="Opening", - entity_type=EntityType.STANDARD, - ) + .tuya_contact(dp_id=1) .tuya_battery(dp_id=2) .skip_configuration() .add_to_registry()