Comments (8)
@isabellaalstrom i published a new release v0.25.0 which made the lib compatible to grocy 3.0.0+ as far as I know, could you check it out maybe?
Also it might make sense to add some sort of information text about the "new" incompability with grocy < 3.0.0 to the integration.
from pygrocy.
Hey! Do you know what things are broken? It seems like the chores are still working, so stock and products?
from pygrocy.
Stock seems to work, but I would say products have issues.
See this: custom-components/grocy#114
Edit: Yeah, my stock-sensor is working correctly, so it seems to be the binary sensors.
from pygrocy.
Yeah! I will look at this tomorrow.
from pygrocy.
Updated to 0.26.0 in my local env and now I get this error. I don't use barcodes, and it seems it expects them? Nothing is updating as it is now.
Source: custom_components/grocy/entity.py:133
First occurred: 1:07:09 PM (21 occurrences)
Last logged: 1:21:10 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 124, in _handle_refresh_interval
await self.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 198, in async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 323, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File "/config/custom_components/grocy/entity.py", line 133, in device_state_attributes
return {"products": [x.as_dict() for x in self.entity_data]}
File "/config/custom_components/grocy/entity.py", line 133, in <listcomp>
return {"products": [x.as_dict() for x in self.entity_data]}
File "/usr/local/lib/python3.8/site-packages/pygrocy/base.py", line 10, in as_dict
return {k: get_val(getattr(self, k)) for k, v in self.__class__.__dict__.items() if isinstance(v, property)}
File "/usr/local/lib/python3.8/site-packages/pygrocy/base.py", line 10, in <dictcomp>
return {k: get_val(getattr(self, k)) for k, v in self.__class__.__dict__.items() if isinstance(v, property)}
File "/usr/local/lib/python3.8/site-packages/pygrocy/data_models/product.py", line 89, in barcodes
return [barcode.barcode for barcode in self.product_barcodes]
TypeError: 'NoneType' object is not iterable
from pygrocy.
@isabellaalstrom I (hopefully) fixed your issue and another one in a new 0.27.0 version :)
from pygrocy.
Will check at once!
from pygrocy.
All sensors and binary sensors are now working!
from pygrocy.
Related Issues (20)
- Done time should be optional, as it is for execute_chore call
- support consuming decimal amounts HOT 1
- Add assigned_to_user to task
- add category field to task
- refactor test_grocy.py away from responses
- Update Product Userfields
- Update Product Userfields HOT 2
- Feature: Edit Stock HOT 1
- [Error] Get Stock HOT 2
- Wrong API call GET --> DELETE HOT 2
- Bug: Error if product group is not set HOT 3
- min_stock_amount should be float, not int HOT 1
- Enable "allow_subproduct_substitution" on consume endpoint
- execute_chore is formatting time in UTC time. grocy server ignores the timezone, so it shifts the date of chore execution HOT 3
- Feature request: Add missing API endpoints HOT 1
- Failed TC with Grocy 3.3.0 HOT 2
- evaluate pyproject.toml as setup.py alternative
- Update pydantic requirements from 1.10.0 to 1.10.2 HOT 1
- Grocy API doesn't use offset timezone info (chore execution gets the wrong time) HOT 6
- add_product method does not accpet location_id
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygrocy.