コード例 #1
0
 def _create_device(self):
     """Update the device with the latest data."""
     self._climate = Thermostat(self.device, self.api)
コード例 #2
0
 def _create_device(self):
     """Update the device with the latest data."""
     self._climate = Thermostat(self.device, self.coordinator.client)
コード例 #3
0
 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)