init method

Future<HomeDevice> init()

Initializes the device

Sets the status and programs properties for this device by calling the getPrograms and getStatus methods.

Implementation

Future<HomeDevice> init() async {
  status = await getStatus();
  programs = await getPrograms();
  settings = await getSettings();
  return this;
}