getLightAccessoryInfo method

Future<KeyLightInfo> getLightAccessoryInfo()

Returns information about a light (serial number…)

Implementation

Future<KeyLightInfo> getLightAccessoryInfo() {
  return http.get(Uri.parse(formatUrl('accessory-info'))).then((response) {
    return KeyLightInfo.fromJSON(json.decode(response.body));
  });
}