dlashua / hass-setter Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Hi,
After seeing an issue (custom-components/pyscript#331) in the pyscript project, I was wondering if there may be a similar problem with this component too.
Thanks for your response,
Maxime
This error originated from a custom integration.
Logger: homeassistant.loader
Source: custom_components/setter/init.py:81
Integration: setter (documentation, issues)
First occurred: 08:31:47 (1 occurrences)
Last logged: 08:31:47
Unexpected exception importing component custom_components.setter
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/setter/init.py", line 54, in
class SaverEntity(RestoreEntity):
File "/config/custom_components/setter/init.py", line 81, in SaverEntity
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'
Setup failed for custom integration setter: Unable to import component: Exception importing custom_components.setter
I added custom repository https://github.com/dlashua/hass-setter (type: Integration) to HACS and restarted HA but when I attempted to add the integration via the UI, the following error was presented:
I'm trying to figure out a way to save both the state of a sensor (binary_sensor from my alarm panel) and the last_modified and last_updated times. I believe since this code is calling hass.states.set() it's going to reset those times. I've tried adding code (to my own custom component) which would modify those times in the existing state object for the entity (which seems to work fine) - but those times never show up in the front end.
Any chance you've thought about how to do that?
ps: Sorry about opening an issue for something that isn't an issue.
Running Home Assistant 0.117.4 and after adding this integration via HACS I do not see the service setter.set. My log only has this one line containing "setter":
2020-11-04 14:41:20 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for setter which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
Tks,
Daniel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.