diff --git a/custom_components/hon/hon.py b/custom_components/hon/hon.py index 1157693..874cea7 100755 --- a/custom_components/hon/hon.py +++ b/custom_components/hon/hon.py @@ -352,7 +352,7 @@ async def send_command(self, device, command, parameters, ancillary_parameters): def get_device(self, hass, device_id): mac = get_hOn_mac(device_id, hass) if mac in self._coordinator_dict: - return self._coordinator_dict[mac] + return self._coordinator_dict[mac].device _LOGGER.error(f"Unable to find the device with ID: {device_id} and mac: {mac}") return None diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index 2638db1..dd5e0e8 100755 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -6,5 +6,5 @@ "documentation": "https://github.com/gvigroux/hon", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/gvigroux/hon/issues", - "version": "0.7.8" + "version": "0.7.9" }