-
Notifications
You must be signed in to change notification settings - Fork 52
Ensure traits to always reflect the the status of commands #592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 3 commits
2368bef
4fed92b
c35bd19
27ec017
5c48f61
cc783d7
da0336e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -24,3 +24,4 @@ class SoundVolumeTrait(SoundVolume, common.V1TraitMixin): | |||||
| async def set_volume(self, volume: int) -> None: | ||||||
| """Set the sound volume of the device.""" | ||||||
| await self.rpc_channel.send_command(RoborockCommand.CHANGE_SOUND_VOLUME, params=[volume]) | ||||||
| self.volume = volume | ||||||
|
||||||
| self.volume = volume | |
| await self.refresh() |
Uh oh!
There was an error while loading. Please reload this page.