Comments (6)
fixed in release 1.16.0
from hacs_waste_collection_schedule.
I agree that the home assistant log should not be flodded with error messages. From my experience, the services are available almost 100% (to be honest, I have never experienced an outage). Therefore a missing fetch is a noticeable failure which I have no doubt to write to the log (once per day). Do you have other experiences?
from hacs_waste_collection_schedule.
Seems like it. In fact two of my Home Assistant instances that query the AWM München web service have the issue in their log. #106 Can't currently say when or how often this happens.
Happy to keep an eye out for it.
Therefore a missing fetch is a noticeable failure
While at it, maybe you could improve the message a little. The typical end user will only be distracted by the object address and the error
can be omitted. In fact the error can probably be further disected
from hacs_waste_collection_schedule.
Traced the error and had to find out that @jberrenberg already commited a fix. Thanks! 47f8250
Food for thought: This would have been a lot easier without the cascade of super generic try ... except Exception
blocks in the code. Python offers a lot more than that. Example: After removing them it took me seconds to identify the error and a solution.
Feel free to close the issue
from hacs_waste_collection_schedule.
Agree. The error message and the try .. except cascade is bad. Feel free to submit a PR :-)
from hacs_waste_collection_schedule.
I would be happy to but I feel this is a job better suited for someone who has a deeper understanding of the project, to make the right structural decisions.
Let's discuss. I would probably approach this by putting a try...except
block around entries = self._source.fetch()
alone. This method is just too explosive looking at all the different sources already implemented. Next I would break out different Exception classes to narrow down the error. Alternatively or additionally use the traceback library to recover the trace for logging. In case of doubt I would always want more logging details.
from hacs_waste_collection_schedule.
Related Issues (20)
- [Source Request]: Erftstadt, Germany HOT 1
- [Bug]: DaysTo not respecting timezone HOT 2
- [Source Request]: Stadt Emden, Germany HOT 2
- [Bug]: No Dates being pulled anymore - awido_de HOT 4
- [Bug]: Source Ronneby Miljöteknik Sophämtning does not seem to work
- [Source Request]: Brighton City Council
- [Source Request]: Gedling Borough Council UK HOT 2
- Leeds City Council, UK[Source Request]: HOT 1
- Can you add Rother District Council HOT 1
- [Bug]: Ashfield District Council is broken HOT 4
- [Bug]: Chichester District Council is not working
- [Bug]: RenoSyd seems to have changed its website HOT 1
- [Bug]: Renoweb doesn't work for Jammerbugt Kommune HOT 2
- [Bug]: Setup failed for custom integration 'waste_collection_schedule': Unable to import component: No module named 'waste_collection_schedule.source_shell' HOT 1
- Telford and Wrekin Calendar stopped working HOT 1
- [Source Request]: Can HOT 1
- [Source Request]: Could you add Town of Victoria Park, Western Australia please
- [Source Request]: neu-ulm HOT 4
- [Bug]: abfall_io returns only part of the Data HOT 3
- Could you please add Cheltenham Borough Council?
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 hacs_waste_collection_schedule.