Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing unit in _TZE200_pay2byax quirk #3563

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion zhaquirks/tuya/ts0601_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tuya temp and humidity sensors."""

from zigpy.quirks.v2.homeassistant import EntityType
from zigpy.quirks.v2.homeassistant import LIGHT_LUX, 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 @@ -89,6 +89,7 @@
fallback_name="Illuminance",
device_class=SensorDeviceClass.ILLUMINANCE,
state_class=SensorStateClass.MEASUREMENT,
unit=LIGHT_LUX,
)
.tuya_binary_sensor(
dp_id=1,
Expand Down