修复静音服务错误
This commit is contained in:
parent
d07ab62ed7
commit
fce38ab51d
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"domain": "ha_cloud_music",
|
||||
"name": "\u4E91\u97F3\u4E50",
|
||||
"version": "2023.11.17",
|
||||
"version": "2023.11.19",
|
||||
"config_flow": true,
|
||||
"documentation": "https://github.com/shaonianzhentan/ha_cloud_music",
|
||||
"requirements": [
|
||||
|
|
|
@ -178,7 +178,8 @@ class CloudMusicMediaPlayer(MediaPlayerEntity):
|
|||
await self.async_call('volume_down')
|
||||
|
||||
async def async_mute_volume(self, mute):
|
||||
await self.async_call('mute_volume', { 'mute': mute })
|
||||
self._attr_is_volume_muted = mute
|
||||
await self.async_call('mute_volume', { 'is_volume_muted': mute })
|
||||
|
||||
async def async_set_volume_level(self, volume: float):
|
||||
self._attr_volume_level = volume
|
||||
|
|
Loading…
Reference in New Issue