pymelcloud icon indicating copy to clipboard operation
pymelcloud copied to clipboard

How to Write to MelCloud!? Error: can't set attribute

Open sonicdee opened this issue 2 years ago • 1 comments

Hello, fetching state of my ATA devices works fine, but I'm not able to set something.

How to, there is no example...

setting the attribute before or after await device.update() does not work..:

device.power = False AttributeError: can't set attribute

sonicdee avatar Nov 03 '22 12:11 sonicdee

oh I found out: await device.update() props = {'power': True, .....} await device.set(props) ... await session.close()

sonicdee avatar Nov 04 '22 09:11 sonicdee