mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
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:
parent
9593d9610d
commit
c54500cb1f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user