Comments (2)
the setup is OK, but next()
raises an exception due to no values found. I'd suggest assigning list(iter(PvExcessControl.instances.values()))
to a variable, checking its length, and if it is not zero - then take the first element.
The other way around is to catch StopIteration
exception and pass
it.
from pyscript.
Thank you, will check that.
from pyscript.
Related Issues (20)
- Since the last update of HASS the following warning is written in the log a each script call HOT 2
- Generate promote for AI conversation agent HOT 1
- blocking call (Home assistant) HOT 12
- Excluding Pyscript from Logbook HA HOT 3
- Detected blocking call to scandir with args (b'/config/pyscript',) HOT 11
- Is it possible to use multiline strings in state trigger decorators? HOT 1
- calendar no attribute 'get_events' HOT 3
- Detected blocking call HOT 1
- Another Warning - blocking call HOT 1
- HACS cannot update pyscript to master branch
- 1.6 breaks automatic reload HOT 4
- Cant' read entities of a group since 1.6.0 HOT 3
- Documentation Improvements HOT 1
- need help --- Import not working in pyscript via HACS on HA HOT 6
- How to use class inheritance correctly HOT 5
- @task_unique decorator not working along with @service decorator
- pyscript accesses hass.components.hassio deprecation notice HOT 2
- Using state_trigger factory from a module
- Inconsistent `map` behavior when compared with standard python interpreter: expected str instance, coroutine found HOT 2
- Repairs showing in homeassistant for each pyscript service HOT 1
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 pyscript.