mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Bump pylamarzocco to 1.2.11 (#131331)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
parent
7d1a7b0870
commit
e856ba11d0
@ -13,6 +13,7 @@ from pylamarzocco.client_cloud import LaMarzoccoCloudClient
|
||||
from pylamarzocco.client_local import LaMarzoccoLocalClient
|
||||
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||
from websockets.protocol import State
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_MODEL, CONF_NAME, EVENT_HOMEASSISTANT_STOP
|
||||
@ -85,7 +86,7 @@ class LaMarzoccoUpdateCoordinator(DataUpdateCoordinator[None]):
|
||||
if (
|
||||
self._local_client is not None
|
||||
and self._local_client.websocket is not None
|
||||
and self._local_client.websocket.open
|
||||
and self._local_client.websocket.state is State.OPEN
|
||||
):
|
||||
self._local_client.terminating = True
|
||||
await self._local_client.websocket.close()
|
||||
|
@ -33,5 +33,5 @@
|
||||
"integration_type": "device",
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["pylamarzocco"],
|
||||
"requirements": ["pylamarzocco==1.2.7"]
|
||||
"requirements": ["pylamarzocco==1.2.11"]
|
||||
}
|
||||
|
@ -2027,7 +2027,7 @@ pykwb==0.0.8
|
||||
pylacrosse==0.4
|
||||
|
||||
# homeassistant.components.lamarzocco
|
||||
pylamarzocco==1.2.7
|
||||
pylamarzocco==1.2.11
|
||||
|
||||
# homeassistant.components.lastfm
|
||||
pylast==5.1.0
|
||||
|
@ -1632,7 +1632,7 @@ pykrakenapi==0.1.8
|
||||
pykulersky==0.5.2
|
||||
|
||||
# homeassistant.components.lamarzocco
|
||||
pylamarzocco==1.2.7
|
||||
pylamarzocco==1.2.11
|
||||
|
||||
# homeassistant.components.lastfm
|
||||
pylast==5.1.0
|
||||
|
@ -5,6 +5,7 @@ from unittest.mock import AsyncMock, MagicMock, patch
|
||||
from pylamarzocco.const import FirmwareType
|
||||
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||
import pytest
|
||||
from websockets.protocol import State
|
||||
|
||||
from homeassistant.components.lamarzocco.config_flow import CONF_MACHINE
|
||||
from homeassistant.components.lamarzocco.const import DOMAIN
|
||||
@ -182,7 +183,7 @@ async def test_websocket_closed_on_unload(
|
||||
) as local_client:
|
||||
client = local_client.return_value
|
||||
client.websocket = AsyncMock()
|
||||
client.websocket.connected = True
|
||||
client.websocket.state = State.OPEN
|
||||
await async_init_integration(hass, mock_config_entry)
|
||||
hass.bus.async_fire(EVENT_HOMEASSISTANT_STOP)
|
||||
await hass.async_block_till_done()
|
||||
|
Loading…
x
Reference in New Issue
Block a user