Skip to content

Commit

Permalink
Update text.py with Fingerbot Plus
Browse files Browse the repository at this point in the history
  • Loading branch information
rpimeekle authored Apr 16, 2024
1 parent 1ae5b5b commit 1a9af13
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions custom_components/tuya_ble/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,29 @@ class TuyaBLECategoryTextMapping:
),
},
),
"kg": TuyaBLECategoryTextMapping(
products={
**dict.fromkeys(
[
"mknd4lci"
], # Fingerbot Plus
[
TuyaBLETextMapping(
dp_id=109,
description=TextEntityDescription(
key="program",
icon="mdi:repeat",
pattern="^((\d{1,2}|100)(\/\d{1,2})?)(;((\d{1,2}|100)(\/\d{1,2})?))+$",
entity_category=EntityCategory.CONFIG,
),
is_available=is_fingerbot_in_program_mode,
getter=get_fingerbot_program,
setter=set_fingerbot_program,
),
]
),
},
),
}


Expand Down

0 comments on commit 1a9af13

Please sign in to comment.