Skip to content

Commit

Permalink
➕ ➖ Replaced pygrocy with pygrocy2
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffordwhansen committed Jan 4, 2025
1 parent de31430 commit 442e9c6
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion custom_components/grocy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/grocy/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/grocy/grocy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/grocy/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
4 changes: 2 additions & 2 deletions custom_components/grocy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion custom_components/grocy/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 442e9c6

Please sign in to comment.