Rename lamarzocco library (#130204)
parent
701f35488c
commit
08f5081197
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from lmcloud.client_bluetooth import LaMarzoccoBluetoothClient
|
|
||||||
from lmcloud.client_cloud import LaMarzoccoCloudClient
|
|
||||||
from lmcloud.client_local import LaMarzoccoLocalClient
|
|
||||||
from lmcloud.const import BT_MODEL_PREFIXES, FirmwareType
|
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
|
||||||
from packaging import version
|
from packaging import version
|
||||||
|
from pylamarzocco.client_bluetooth import LaMarzoccoBluetoothClient
|
||||||
|
from pylamarzocco.client_cloud import LaMarzoccoCloudClient
|
||||||
|
from pylamarzocco.client_local import LaMarzoccoLocalClient
|
||||||
|
from pylamarzocco.const import BT_MODEL_PREFIXES, FirmwareType
|
||||||
|
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||||
|
|
||||||
from homeassistant.components.bluetooth import async_discovered_service_info
|
from homeassistant.components.bluetooth import async_discovered_service_info
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from lmcloud.models import LaMarzoccoMachineConfig
|
from pylamarzocco.models import LaMarzoccoMachineConfig
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
BinarySensorDeviceClass,
|
BinarySensorDeviceClass,
|
||||||
|
|
|
@ -4,8 +4,8 @@ from collections.abc import Callable, Coroutine
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
|
|
||||||
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
|
from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from collections.abc import Iterator
|
from collections.abc import Iterator
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
||||||
from lmcloud.models import LaMarzoccoWakeUpSleepEntry
|
from pylamarzocco.models import LaMarzoccoWakeUpSleepEntry
|
||||||
|
|
||||||
from homeassistant.components.calendar import CalendarEntity, CalendarEvent
|
from homeassistant.components.calendar import CalendarEntity, CalendarEvent
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -6,10 +6,10 @@ from collections.abc import Mapping
|
||||||
import logging
|
import logging
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.client_cloud import LaMarzoccoCloudClient
|
from pylamarzocco.client_cloud import LaMarzoccoCloudClient
|
||||||
from lmcloud.client_local import LaMarzoccoLocalClient
|
from pylamarzocco.client_local import LaMarzoccoLocalClient
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||||
from lmcloud.models import LaMarzoccoDeviceInfo
|
from pylamarzocco.models import LaMarzoccoDeviceInfo
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.bluetooth import (
|
from homeassistant.components.bluetooth import (
|
||||||
|
|
|
@ -8,11 +8,11 @@ import logging
|
||||||
from time import time
|
from time import time
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.client_bluetooth import LaMarzoccoBluetoothClient
|
from pylamarzocco.client_bluetooth import LaMarzoccoBluetoothClient
|
||||||
from lmcloud.client_cloud import LaMarzoccoCloudClient
|
from pylamarzocco.client_cloud import LaMarzoccoCloudClient
|
||||||
from lmcloud.client_local import LaMarzoccoLocalClient
|
from pylamarzocco.client_local import LaMarzoccoLocalClient
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
||||||
from dataclasses import asdict
|
from dataclasses import asdict
|
||||||
from typing import Any, TypedDict
|
from typing import Any, TypedDict
|
||||||
|
|
||||||
from lmcloud.const import FirmwareType
|
from pylamarzocco.const import FirmwareType
|
||||||
|
|
||||||
from homeassistant.components.diagnostics import async_redact_data
|
from homeassistant.components.diagnostics import async_redact_data
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from lmcloud.const import FirmwareType
|
from pylamarzocco.const import FirmwareType
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
|
|
||||||
from homeassistant.helpers.device_registry import DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceInfo
|
||||||
from homeassistant.helpers.entity import EntityDescription
|
from homeassistant.helpers.entity import EntityDescription
|
||||||
|
|
|
@ -32,6 +32,6 @@
|
||||||
"documentation": "https://www.home-assistant.io/integrations/lamarzocco",
|
"documentation": "https://www.home-assistant.io/integrations/lamarzocco",
|
||||||
"integration_type": "device",
|
"integration_type": "device",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["lmcloud"],
|
"loggers": ["pylamarzocco"],
|
||||||
"requirements": ["lmcloud==1.2.3"]
|
"requirements": ["pylamarzocco==1.2.3"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,16 +4,16 @@ from collections.abc import Callable, Coroutine
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.const import (
|
from pylamarzocco.const import (
|
||||||
KEYS_PER_MODEL,
|
KEYS_PER_MODEL,
|
||||||
BoilerType,
|
BoilerType,
|
||||||
MachineModel,
|
MachineModel,
|
||||||
PhysicalKey,
|
PhysicalKey,
|
||||||
PrebrewMode,
|
PrebrewMode,
|
||||||
)
|
)
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
from lmcloud.models import LaMarzoccoMachineConfig
|
from pylamarzocco.models import LaMarzoccoMachineConfig
|
||||||
|
|
||||||
from homeassistant.components.number import (
|
from homeassistant.components.number import (
|
||||||
NumberDeviceClass,
|
NumberDeviceClass,
|
||||||
|
|
|
@ -4,10 +4,10 @@ from collections.abc import Callable, Coroutine
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.const import MachineModel, PrebrewMode, SmartStandbyMode, SteamLevel
|
from pylamarzocco.const import MachineModel, PrebrewMode, SmartStandbyMode, SteamLevel
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
from lmcloud.models import LaMarzoccoMachineConfig
|
from pylamarzocco.models import LaMarzoccoMachineConfig
|
||||||
|
|
||||||
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
from homeassistant.components.select import SelectEntity, SelectEntityDescription
|
||||||
from homeassistant.const import EntityCategory
|
from homeassistant.const import EntityCategory
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
from collections.abc import Callable
|
from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from lmcloud.const import BoilerType, MachineModel, PhysicalKey
|
from pylamarzocco.const import BoilerType, MachineModel, PhysicalKey
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
|
|
||||||
from homeassistant.components.sensor import (
|
from homeassistant.components.sensor import (
|
||||||
SensorDeviceClass,
|
SensorDeviceClass,
|
||||||
|
|
|
@ -4,10 +4,10 @@ from collections.abc import Callable, Coroutine
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.const import BoilerType
|
from pylamarzocco.const import BoilerType
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
from lmcloud.models import LaMarzoccoMachineConfig
|
from pylamarzocco.models import LaMarzoccoMachineConfig
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
|
from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
|
||||||
from homeassistant.const import EntityCategory
|
from homeassistant.const import EntityCategory
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from lmcloud.const import FirmwareType
|
from pylamarzocco.const import FirmwareType
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
|
|
||||||
from homeassistant.components.update import (
|
from homeassistant.components.update import (
|
||||||
UpdateDeviceClass,
|
UpdateDeviceClass,
|
||||||
|
|
|
@ -1309,9 +1309,6 @@ linear-garage-door==0.2.9
|
||||||
# homeassistant.components.linode
|
# homeassistant.components.linode
|
||||||
linode-api==4.1.9b1
|
linode-api==4.1.9b1
|
||||||
|
|
||||||
# homeassistant.components.lamarzocco
|
|
||||||
lmcloud==1.2.3
|
|
||||||
|
|
||||||
# homeassistant.components.google_maps
|
# homeassistant.components.google_maps
|
||||||
locationsharinglib==5.0.1
|
locationsharinglib==5.0.1
|
||||||
|
|
||||||
|
@ -2026,6 +2023,9 @@ pykwb==0.0.8
|
||||||
# homeassistant.components.lacrosse
|
# homeassistant.components.lacrosse
|
||||||
pylacrosse==0.4
|
pylacrosse==0.4
|
||||||
|
|
||||||
|
# homeassistant.components.lamarzocco
|
||||||
|
pylamarzocco==1.2.3
|
||||||
|
|
||||||
# homeassistant.components.lastfm
|
# homeassistant.components.lastfm
|
||||||
pylast==5.1.0
|
pylast==5.1.0
|
||||||
|
|
||||||
|
|
|
@ -1090,9 +1090,6 @@ libsoundtouch==0.8
|
||||||
# homeassistant.components.linear_garage_door
|
# homeassistant.components.linear_garage_door
|
||||||
linear-garage-door==0.2.9
|
linear-garage-door==0.2.9
|
||||||
|
|
||||||
# homeassistant.components.lamarzocco
|
|
||||||
lmcloud==1.2.3
|
|
||||||
|
|
||||||
# homeassistant.components.london_underground
|
# homeassistant.components.london_underground
|
||||||
london-tube-status==0.5
|
london-tube-status==0.5
|
||||||
|
|
||||||
|
@ -1631,6 +1628,9 @@ pykrakenapi==0.1.8
|
||||||
# homeassistant.components.kulersky
|
# homeassistant.components.kulersky
|
||||||
pykulersky==0.5.2
|
pykulersky==0.5.2
|
||||||
|
|
||||||
|
# homeassistant.components.lamarzocco
|
||||||
|
pylamarzocco==1.2.3
|
||||||
|
|
||||||
# homeassistant.components.lastfm
|
# homeassistant.components.lastfm
|
||||||
pylast==5.1.0
|
pylast==5.1.0
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Mock inputs for tests."""
|
"""Mock inputs for tests."""
|
||||||
|
|
||||||
from lmcloud.const import MachineModel
|
from pylamarzocco.const import MachineModel
|
||||||
|
|
||||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
|
@ -5,9 +5,9 @@ import json
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from bleak.backends.device import BLEDevice
|
from bleak.backends.device import BLEDevice
|
||||||
from lmcloud.const import FirmwareType, MachineModel, SteamLevel
|
from pylamarzocco.const import FirmwareType, MachineModel, SteamLevel
|
||||||
from lmcloud.lm_machine import LaMarzoccoMachine
|
from pylamarzocco.lm_machine import LaMarzoccoMachine
|
||||||
from lmcloud.models import LaMarzoccoDeviceInfo
|
from pylamarzocco.models import LaMarzoccoDeviceInfo
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.lamarzocco.const import DOMAIN
|
from homeassistant.components.lamarzocco.const import DOMAIN
|
||||||
|
|
|
@ -4,7 +4,7 @@ from datetime import timedelta
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from freezegun.api import FrozenDateTimeFactory
|
from freezegun.api import FrozenDateTimeFactory
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
from homeassistant.const import STATE_UNAVAILABLE
|
from homeassistant.const import STATE_UNAVAILABLE
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from lmcloud.const import MachineModel
|
from pylamarzocco.const import MachineModel
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||||
from lmcloud.models import LaMarzoccoDeviceInfo
|
from pylamarzocco.models import LaMarzoccoDeviceInfo
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.dhcp import DhcpServiceInfo
|
from homeassistant.components.dhcp import DhcpServiceInfo
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
from unittest.mock import AsyncMock, MagicMock, patch
|
from unittest.mock import AsyncMock, MagicMock, patch
|
||||||
|
|
||||||
from lmcloud.const import FirmwareType
|
from pylamarzocco.const import FirmwareType
|
||||||
from lmcloud.exceptions import AuthFail, RequestNotSuccessful
|
from pylamarzocco.exceptions import AuthFail, RequestNotSuccessful
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.lamarzocco.config_flow import CONF_MACHINE
|
from homeassistant.components.lamarzocco.config_flow import CONF_MACHINE
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.const import (
|
from pylamarzocco.const import (
|
||||||
KEYS_PER_MODEL,
|
KEYS_PER_MODEL,
|
||||||
BoilerType,
|
BoilerType,
|
||||||
MachineModel,
|
MachineModel,
|
||||||
PhysicalKey,
|
PhysicalKey,
|
||||||
PrebrewMode,
|
PrebrewMode,
|
||||||
)
|
)
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.const import MachineModel, PrebrewMode, SmartStandbyMode, SteamLevel
|
from pylamarzocco.const import MachineModel, PrebrewMode, SmartStandbyMode, SteamLevel
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.const import MachineModel
|
from pylamarzocco.const import MachineModel
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
|
|
||||||
from lmcloud.const import FirmwareType
|
from pylamarzocco.const import FirmwareType
|
||||||
from lmcloud.exceptions import RequestNotSuccessful
|
from pylamarzocco.exceptions import RequestNotSuccessful
|
||||||
import pytest
|
import pytest
|
||||||
from syrupy import SnapshotAssertion
|
from syrupy import SnapshotAssertion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue