Change warning to info when modbus is ready (#57953)
* Change warning to info. * Make level info implicit.pull/58011/head
parent
9561c51276
commit
f92fe38bbd
|
@ -354,7 +354,7 @@ class ModbusHub:
|
|||
return False
|
||||
else:
|
||||
message = f"modbus {self.name} communication open"
|
||||
_LOGGER.warning(message)
|
||||
_LOGGER.info(message)
|
||||
return True
|
||||
|
||||
def _pymodbus_call(
|
||||
|
|
|
@ -770,6 +770,7 @@ async def test_shutdown(hass, caplog, mock_pymodbus, mock_modbus_with_pymodbus):
|
|||
async def test_stop_restart(hass, caplog, mock_modbus):
|
||||
"""Run test for service stop."""
|
||||
|
||||
caplog.set_level(logging.INFO)
|
||||
entity_id = f"{SENSOR_DOMAIN}.{TEST_ENTITY_NAME}"
|
||||
assert hass.states.get(entity_id).state == STATE_UNKNOWN
|
||||
hass.states.async_set(entity_id, 17)
|
||||
|
|
Loading…
Reference in New Issue