Fix invalid spec in mqtt tests for py3.11 (#88092)

Fix invalid spec in mqtt tests

unittest.mock.InvalidSpecError: Cannot spec a Mock object.
This commit is contained in:
J. Nick Koston 2023-02-14 10:28:46 -06:00 committed by GitHub
parent 9593d9610d
commit c54500cb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1944,7 +1944,6 @@ async def test_delayed_birth_message(
mqtt_component_mock = MagicMock(
return_value=hass.data["mqtt"].client,
spec_set=hass.data["mqtt"].client,
wraps=hass.data["mqtt"].client,
)
mqtt_component_mock._mqttc = mqtt_client_mock