diff --git a/custom_components/grocy/config_flow.py b/custom_components/grocy/config_flow.py index aabd540..64a1523 100644 --- a/custom_components/grocy/config_flow.py +++ b/custom_components/grocy/config_flow.py @@ -4,7 +4,7 @@ import voluptuous as vol from homeassistant import config_entries -from pygrocy import Grocy +from pygrocy2.grocy import Grocy from .const import ( CONF_API_KEY, diff --git a/custom_components/grocy/coordinator.py b/custom_components/grocy/coordinator.py index 4aac982..2fee711 100644 --- a/custom_components/grocy/coordinator.py +++ b/custom_components/grocy/coordinator.py @@ -7,7 +7,7 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers.entity import Entity from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed -from pygrocy import Grocy +from pygrocy2.grocy import Grocy from .const import ( CONF_API_KEY, diff --git a/custom_components/grocy/grocy_data.py b/custom_components/grocy/grocy_data.py index a4067cd..cd987a9 100644 --- a/custom_components/grocy/grocy_data.py +++ b/custom_components/grocy/grocy_data.py @@ -10,7 +10,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.aiohttp_client import async_get_clientsession -from pygrocy.data_models.battery import Battery +from pygrocy2.data_models.battery import Battery from .const import ( ATTR_BATTERIES, diff --git a/custom_components/grocy/helpers.py b/custom_components/grocy/helpers.py index c8d9bb0..61922a5 100644 --- a/custom_components/grocy/helpers.py +++ b/custom_components/grocy/helpers.py @@ -5,7 +5,7 @@ from typing import Any, Dict, Tuple from urllib.parse import urlparse -from pygrocy.data_models.meal_items import MealPlanItem +from pygrocy2.data_models.meal_items import MealPlanItem def extract_base_url_and_path(url: str) -> Tuple[str, str]: diff --git a/custom_components/grocy/manifest.json b/custom_components/grocy/manifest.json index dd903cd..c387d1a 100644 --- a/custom_components/grocy/manifest.json +++ b/custom_components/grocy/manifest.json @@ -13,7 +13,7 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/custom-components/grocy/issues", "requirements": [ - "pygrocy==2.0.0" + "pygrocy2==2.3.3" ], "version": "0.0.0" -} \ No newline at end of file +} diff --git a/custom_components/grocy/services.py b/custom_components/grocy/services.py index 30899e6..fc2eb10 100644 --- a/custom_components/grocy/services.py +++ b/custom_components/grocy/services.py @@ -4,7 +4,7 @@ import voluptuous as vol from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, ServiceCall -from pygrocy import EntityType, TransactionType +from pygrocy2.grocy import EntityType, TransactionType from .const import ATTR_CHORES, ATTR_TASKS, DOMAIN from .coordinator import GrocyDataUpdateCoordinator