mirror of
https://github.com/home-assistant/core.git
synced 2025-09-09 23:01:40 +02:00
Modbus: Remove wrong comment on non-existing parameter. (#150501)
This commit is contained in:
@@ -467,9 +467,6 @@ class ModbusThermostat(BaseStructPlatform, RestoreEntity, ClimateEntity):
|
||||
|
||||
async def _async_update(self) -> None:
|
||||
"""Update Target & Current Temperature."""
|
||||
# remark "now" is a dummy parameter to avoid problems with
|
||||
# async_track_time_interval
|
||||
|
||||
self._attr_target_temperature = await self._async_read_register(
|
||||
CALL_TYPE_REGISTER_HOLDING,
|
||||
self._target_temperature_register[
|
||||
|
@@ -123,8 +123,6 @@ class ModbusCover(BasePlatform, CoverEntity, RestoreEntity):
|
||||
|
||||
async def _async_update(self) -> None:
|
||||
"""Update the state of the cover."""
|
||||
# remark "now" is a dummy parameter to avoid problems with
|
||||
# async_track_time_interval
|
||||
result = await self._hub.async_pb_call(
|
||||
self._slave, self._address, 1, self._input_type
|
||||
)
|
||||
|
@@ -380,8 +380,6 @@ class BaseSwitch(BasePlatform, ToggleEntity, RestoreEntity):
|
||||
|
||||
async def _async_update(self) -> None:
|
||||
"""Update the entity state."""
|
||||
# remark "now" is a dummy parameter to avoid problems with
|
||||
# async_track_time_interval
|
||||
if not self._verify_active:
|
||||
self._attr_available = True
|
||||
return
|
||||
|
@@ -106,8 +106,6 @@ class ModbusRegisterSensor(BaseStructPlatform, RestoreSensor, SensorEntity):
|
||||
|
||||
async def _async_update(self) -> None:
|
||||
"""Update the state of the sensor."""
|
||||
# remark "now" is a dummy parameter to avoid problems with
|
||||
# async_track_time_interval
|
||||
self._cancel_call = None
|
||||
raw_result = await self._hub.async_pb_call(
|
||||
self._slave, self._address, self._count, self._input_type
|
||||
|
Reference in New Issue
Block a user