Set modbus entity to non-available unless scan_interval=0 (#53155)

This commit is contained in:
jan iversen 2021-07-21 07:48:02 +02:00 committed by GitHub
parent 8a72e8df79
commit 2e2b340b1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 0 deletions

View file

@ -104,6 +104,7 @@ async def test_service_climate_update(hass, mock_pymodbus):
CONF_TARGET_TEMP: 117,
CONF_ADDRESS: 117,
CONF_SLAVE: 10,
CONF_SCAN_INTERVAL: 0,
}
]
}
@ -176,6 +177,7 @@ test_value.attributes = {ATTR_TEMPERATURE: 37}
CONF_NAME: CLIMATE_NAME,
CONF_TARGET_TEMP: 117,
CONF_ADDRESS: 117,
CONF_SCAN_INTERVAL: 0,
}
],
},