pyg90alarm.local.alarm_phones

Protocol entity for G90 alarm panel phone numbers.

Classes

G90AlarmPhones([panel_password, ...])

Interprets data fields of GETALMPHONE/SETALMPHONE commands.

class pyg90alarm.local.alarm_phones.G90AlarmPhones(panel_password=<pyg90alarm.dataclass.validation.StringLengthValidator object>, panel_phone_number=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone_number_1=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone_number_2=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone_number_3=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone_number_4=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone_number_5=<pyg90alarm.dataclass.validation.StringLengthValidator object>, phone_number_6=<pyg90alarm.dataclass.validation.StringLengthValidator object>, sms_push_number_1=<pyg90alarm.dataclass.validation.StringLengthValidator object>, sms_push_number_2=<pyg90alarm.dataclass.validation.StringLengthValidator object>)

Bases: DataclassLoadSave

Interprets data fields of GETALMPHONE/SETALMPHONE commands.

async classmethod load(parent, force=False)

Create an instance with values loaded from the device.

Parameters:

force (bool) – If True, bypass policy cache (if any).

Return type:

TypeVar(DataclassLoadSaveT, bound= DataclassLoadSave)

Returns:

An instance of the dataclass loaded from the device.

async classmethod load_uncached(parent)

Create an instance with values loaded from the device bypassing cache.

Return type:

TypeVar(DataclassLoadSaveT, bound= DataclassLoadSave)

async save()

Save the current data to the device.

Refreshes the load policy cache (if any): the initial load(..., force=True) repopulates the policy’s entry for this parent with the newly loaded instance used for read-modify-write.

Return type:

None

serialize()

Returns the dataclass fields as a list.

Handles specific metadata for the fields. :seealso:`Metadata`.

Return type:

List[Any]

Returns:

Dataclass serialized as list.