def _create_device(self): """Update the device with the latest data.""" self._climate = Thermostat(self.device, self.api)
def _create_device(self): """Update the device with the latest data.""" self._climate = Thermostat(self.device, self.coordinator.client)
def device(self): api = SomfyApi("foo", "faa", "https://whatever.com") device_path = os.path.join(CURRENT_DIR, "hvac.json") with open(device_path, "r") as get_device: device = Device(**json.loads(get_device.read())) return Thermostat(device, api)