Skip to content

Commit

Permalink
Fix diplicate opening sensor in _TZE200_pay2byax
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4nt0r committed Dec 13, 2024
1 parent 979551d commit 0215b0f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions zhaquirks/tuya/ts0601_sensor.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 0215b0f

Please sign in to comment.