diff --git a/custom_components/weishaupt_modbus/entities.py b/custom_components/weishaupt_modbus/entities.py index 3381225..53855c4 100644 --- a/custom_components/weishaupt_modbus/entities.py +++ b/custom_components/weishaupt_modbus/entities.py @@ -201,7 +201,7 @@ async def translateVal(self): mbo_y = ModbusObject(self._config_entry, mb_y) if mbo_x == None: return None - val_y = self.calcTemperature(mbo_y.value) / 10 + val_y = self.calcTemperature(await mbo_y.value) / 10 match self._modbus_item.format: case FORMATS.POWER: @@ -210,7 +210,7 @@ async def translateVal(self): return val / self._divider @property - async def device_info(self) -> DeviceInfo: + def device_info(self) -> DeviceInfo: return MySensorEntity.my_device_info(self)