Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Tuyadevice #69

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Tuyadevice #69

wants to merge 3 commits into from

Conversation

edenhaus
Copy link

Hi @clach04,

I create a new class TuyaDevice, which allow to get the status and set values. As example prosenic vacuum cleaner is using tuya. As the dps are different to the Device class, I introduce the new class for only getting the status and setting values.

I also cleaned the code a little bit and removed all print statements and comment out code. In my opinion this helps to increase the code quality. Instead of print statement, we should use the logger.

I fixed also the tests. The was failing, because the didn't expect a crc in the message.

Cheers,
Robert

@edenhaus edenhaus requested a review from clach04 February 9, 2020 08:08
@nicole-ashley
Copy link

@edenhaus This new device class looks handy! It would be super useful if you could set multiple statuses at once too.

@edenhaus
Copy link
Author

pytuya is dead.... unfortunately

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants