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