Skip to content

Commit

Permalink
Fix async of Class MyCalcSensorEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
MadOne committed Oct 20, 2024
1 parent e1b531c commit 5f7ff64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/weishaupt_modbus/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)


Expand Down

0 comments on commit 5f7ff64

Please sign in to comment.