Skip to content

Commit

Permalink
Fix volume control for Yandex Module
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Mar 13, 2024
1 parent 335422c commit 1293f88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions custom_components/yandex_station/core/yandex_station.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,6 @@ def async_set_state(self, data: dict):
if self._attr_available and self.local_state is None:
self._attr_available = False

async def async_set_volume_level(self, volume: float):
if self.device_platform != "yandexmodule":
volume *= 10
await super().async_set_volume_level(volume)

async def async_update(self):
pass

Expand Down
2 changes: 1 addition & 1 deletion custom_components/yandex_station/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ send_command:
number:
min: 0
max: 1
step: 0.1
step: 0.01
mode: box

0 comments on commit 1293f88

Please sign in to comment.