GithubHelp home page GithubHelp logo

hass-setter's People

Contributors

dlashua avatar simonepittis avatar theprincelle avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hass-setter's Issues

HA 2023.6.0 - Unexpected exception importing component custom_components.setter

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

Any idea how to save/restore last_modified and last_updated?

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.

Cannot find service 'setter.set'

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.