async def get_power_settings(self) -> List[Setting]:
     """Get power settings."""
     return [
         Setting.make(**x)
         for x in await self.services["system"]["getPowerSettings"]({})
     ]
Exemple #2
0
 async def get_playback_settings(self) -> List[Setting]:
     """Get playback settings such as shuffle and repeat."""
     return [
         Setting.make(**x) for x in await self.services["avContent"]
         ["getPlaybackModeSettings"]({})
     ]
Exemple #3
0
 async def get_speaker_settings(self) -> List[Setting]:
     """Return speaker settings."""
     speaker_settings = await self.services["audio"]["getSpeakerSettings"](
         {})
     return [Setting.make(**x) for x in speaker_settings]
Exemple #4
0
 async def get_bluetooth_settings(self) -> List[Setting]:
     """Get bluetooth settings."""
     bt = await self.services["avContent"]["getBluetoothSettings"]({})
     return [Setting.make(**x) for x in bt]
Exemple #5
0
 async def get_sleep_timer_settings(self) -> List[Setting]:
     """Get sleep timer settings."""
     return [
         Setting.make(**x)
         for x in await self.services["system"]["getSleepTimerSettings"]({})
     ]
Exemple #6
0
 async def get_misc_settings(self) -> List[Setting]:
     """Return miscellaneous settings such as name and timezone."""
     misc = await self.services["system"]["getDeviceMiscSettings"](target=""
                                                                   )
     return [Setting.make(**x) for x in misc]
Exemple #7
0
 async def get_googlecast_settings(self) -> List[Setting]:
     """Get Googlecast settings."""
     return [
         Setting.make(**x)
         for x in await self.services["system"]["getWuTangInfo"]({})
     ]
Exemple #8
0
 async def get_soundfield(self) -> List[Setting]:
     """Get the current sound field settings."""
     res = await self.services["audio"]["getSoundSettings"]({"target": "soundField"})
     return Setting.make(**res[0])