Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced pygrocy with pygrocy2 #319

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading