bosesoundtouchapi.models.powermanagement

@export
class PowerManagement:

SoundTouch device PowerManagement configuration object.

This class contains the attributes and sub-items that represent the power management status configuration of the device.

PowerManagement(root: xml.etree.ElementTree.Element)

Initializes a new instance of the class.

Arguments:
  • root (Element): xmltree Element item to load arguments from.
    If specified, then other passed arguments are ignored.
BatteryCapable: bool

True if the device is capable of being powered via a battery; otherwise, False.

State: str

Current state of the power supplied (e.g. "FullPower", etc).

def ToString(self) -> str:

Returns a displayable string representation of the class.