custom-components / sensor.tautulli Goto Github PK
View Code? Open in Web Editor NEWA platform which allows you to get information from Tautulli.
License: MIT License
A platform which allows you to get information from Tautulli.
License: MIT License
Dependabot couldn't find a requirements.txt for this project.
Dependabot requires a requirements.txt to evaluate your project's current Python dependencies. It had expected to find one at the path: /requirements.txt
.
If this isn't a Python project, or if it is a library, you may wish to disable updates for it from within Dependabot.
You can mention @dependabot in the comments below to contact the Dependabot team.
Version of the custom_component
latest from Github
Describe the bug
After installation of the custom component by the instructions, when doing a hassio ha check
the following error appears:
invalid syntax (tautulli.py, line 9)
Preceded by the following lines in the log:
core-ssh:/config# hassio homeassistant check ERROR INFO:homeassistant.util.package:Attempting install of colorlog==3.1.4 Testing configuration at /config ERROR:homeassistant.scripts.check_config:BURB Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 207, in check res['components'] = check_ha_config_file(hass) File "/usr/local/lib/python3.6/site-packages/homeassistant/scripts/check_config.py", line 372, in check_ha_config_file platform = loader.get_platform(hass, domain, p_name) File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 60, in get_platform return get_component(hass, PLATFORM_FORMAT.format(domain, platform)) File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 92, in get_component module = importlib.import_module(path) File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 674, in exec_module File "<frozen importlib._bootstrap_external>", line 781, in get_code File "<frozen importlib._bootstrap_external>", line 741, in source_to_code File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/config/custom_components/sensor/tautulli.py", line 9 <!DOCTYPE html> ^ SyntaxError: invalid syntax Fatal error while loading config: invalid syntax (tautulli.py, line 9) Failed config General Errors: - invalid syntax (tautulli.py, line 9) Successful config (partial)
Add your logs here.
Version of the cusom_component
0.0.6
Describe the bug
Some times (not consistent) there is a stacktrace in the log
log
2018-07-25 20:05:57 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.tautulli fails
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 196, in async_update_ha_state
yield from self.async_device_update()
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 319, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/sensor/tautulli.py", line 65, in update
self._port, self._api_key)
File "/config/deps/lib/python3.6/site-packages/pytautulli/__init__.py", line 88, in get_home_stats
if result:
UnboundLocalError: local variable 'result' referenced before assignment
my code:
`
- type: picture-elements
image: /local/lovelace/tv/plex.png
elements:
- type: custom:text-element
text: "<b style='color: orange; font-size: 18px'>Now Playing: </b>"
style:
top: 7%
left: 15px
transform: none
- type: custom:state-attribute-element
entity: sensor.tautulli__abeksis
attribute: magic_title
show_empty: false
style:
top: 20%
left: 15px
font-size: 16px
color: white
transform: none
- type: custom:text-element
text: "<b style='color: orange; font-size: 18px'>Statistics: </b>"
style:
top: 47%
left: 15px
transform: none
- type: custom:state-attribute-element
entity: sensor.tautulli
attribute: Movie
show_empty: true
prefix: "<b style='color: orange; margin-right: 5px'>Most played movie: </b>"
style:
top: 60%
left: 15px
color: white
transform: none
- type: custom:state-attribute-element
entity: sensor.tautulli
attribute: TV
show_empty: true
prefix: "<b style='color: orange; margin-right: 11px'>Most played show: </b>"
style:
top: 70%
left: 15px
color: white
transform: none
- type: custom:state-attribute-element
entity: sensor.tautulli
attribute: User
show_empty: true
prefix: "<b style='color: orange; margin-right: 20px'>Most active user: </b>"
style:
top: 80%
left: 15px
color: white
transform: none`
ERROR:
https://ip/local/state-attribute-element.js?v=2.1:10:14 TypeError: undefined is not an object (evaluating 'state.length')
Version of the cusom_component
#6
Describe the bug
I'm using the example config shown in sensor.tautulli/README.md
with my host and api key swapped in, but the sensor is not pulling in the correct information
What my actual library statistics show:
log
Log in HA that reference tatulli. Nothing else seemed of relevance that I could find. Willing to grab something specific to help if needed.
2018-09-04 22:32:27 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.tautulli which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2018-09-04 22:33:22 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform tautulli is taking over 10 seconds.
2018-09-04 22:34:15 WARNING (MainThread) [homeassistant.components.sensor] Updating tautulli sensor took longer than the scheduled update interval 0:00:30
Not sure if this is the correct
Dependabot couldn't find a requirements.txt for this project.
Dependabot requires a requirements.txt to evaluate your project's current Python dependencies. It had expected to find one at the path: /requirements.txt
.
If this isn't a Python project, or if it is a library, you may wish to disable updates for it from within Dependabot.
You can mention @dependabot in the comments below to contact the Dependabot team.
This platform is merged in Home Assistant and when released this repo will be archived and deprecated.
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.