Skip to content

Commit

Permalink
Allow set_device_on to turn the device on.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuethe authored Dec 13, 2024
1 parent 9079fa9 commit d949492
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion radiacode/radiacode.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def set_language(self, lang='ru') -> None:
self.write_request(VSFR.DEVICE_LANG, struct.pack('<I', bool(lang == 'en')))

def set_device_on(self, on: bool):
assert not on, 'only False value accepted'
self.write_request(VSFR.DEVICE_ON, struct.pack('<I', bool(on)))

def set_sound_on(self, on: bool) -> None:
Expand Down

0 comments on commit d949492

Please sign in to comment.