liblineage.wiki.data_types.battery_data
Classes
|
LineageOS battery information. |
- class liblineage.wiki.data_types.battery_data.BatteryData(capacity: int, removable: bool, tech: str | None = None)
LineageOS battery information.
Attributes: - capacity: The battery capacity (mAh) - removable: Whether the battery is removable - tech: The battery technology
- __init__(capacity: int, removable: bool, tech: str | None = None)
Initialize the battery information.
- classmethod from_data(data: Dict | List | str | None) BatteryData | Dict[str, BatteryData] | None
Create a battery information object from YAML data.