Correct modbus switch to return correct coil (#40190)

pull/40296/head
jan iversen 2020-09-19 12:14:51 +02:00 committed by GitHub
parent 5832184304
commit 9bd28306f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class ModbusCoilSwitch(ToggleEntity, RestoreEntity):
return return
self._available = True self._available = True
return bool(result.bits[0]) return bool(result.bits[coil])
def _write_coil(self, coil, value): def _write_coil(self, coil, value):
"""Write coil using the Modbus hub slave.""" """Write coil using the Modbus hub slave."""