Dan Simpson
Dan Simpson
Closing. As mentioned above this should really be separate service calls, which won't have much if any code in common with this attempt.
Note: the one failing linter is doing a code spellcheck, which is precisely what Tuya is getting wrong with their upstream API response 😅 Looks good from my end, will...
Updated to minimal set of changes. Any help with where to raise a ticket for Tuya support (Smart life app? github.com/tuya/tuya-home-assistant repo? Device manufacturer?) would be much appreciated. Didn't find...
Actually I think I have an idea on how to do this in a device-agnostic way. Will work on that next up, do some testing, and resubmit a bit later
Now fixes this issue in a device-agnostic way: if `DPCode.STATUS` doesn't map to anything meaningful, fall back to looking up (using the same map) via `DPCode.MODE` (smart, wall_follow, etc).
Rebased on latest dev, and tested working as expected. Please let me know if there is anything else I need to do, or anything you'd prefer was removed from this...
Going to split out into smaller changeset as this has completely stalled
Thought smaller PRs were preferred, and this one had stalled for weeks. I'm aware things get busy, but is there something in particular you're waiting on from me here?
Never mind
Just as an FYI to anyone following on, I'm working on this at the moment. Super promising POC locally, but it'll need some cleanup