Skip to content

Commit

Permalink
Add translation_key and fallback_name to Tuya tests (#3449)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES authored Oct 23, 2024
1 parent c788758 commit 2b427a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_tuya_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,35 @@ class TestEnum(t.enum8):
.tuya_switch(
dp_id=6,
attribute_name="test_onoff",
translation_key="test_onoff",
fallback_name="Test on/off",
)
.tuya_number(
dp_id=7,
attribute_name="test_number",
type=t.uint16_t,
translation_key="test_number",
fallback_name="Test number",
)
.tuya_binary_sensor(
dp_id=8,
attribute_name="test_binary",
translation_key="test_binary",
fallback_name="Test binary",
)
.tuya_sensor(
dp_id=9,
attribute_name="test_sensor",
type=t.uint8_t,
translation_key="test_sensor",
fallback_name="Test sensor",
)
.tuya_enum(
dp_id=10,
attribute_name="test_enum",
enum_class=TestEnum,
translation_key="test_enum",
fallback_name="Test enum",
)
.tuya_humidity(dp_id=11)
.add_to_registry()
Expand Down

0 comments on commit 2b427a3

Please sign in to comment.