Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after set up #1

Open
GetiTdone235 opened this issue Sep 10, 2021 · 0 comments
Open

Errors after set up #1

GetiTdone235 opened this issue Sep 10, 2021 · 0 comments

Comments

@GetiTdone235
Copy link

I appear to be receiving 2 errors after completing the configuration and restarting HA.
Also, all 5 of my devic.txt files in /config/scripts/tplink-kasa/devices = " null,null,null,null,null"

Logger: homeassistant.helpers.event
Source: helpers/template.py:396
First occurred: 12:39:26 PM (5 occurrences)
Last logged: 12:39:26 PM

First error

Error while processing template: Template("{{ states('sensor.light1_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light2_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light3_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light4_light_temp', 'deg') | int}}")
Error while processing template: Template("{{ states('sensor.light5_light_temp', 'deg') | int}}")
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 394, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1477, in _render_with_context
return template.render(**kwargs)
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "", line 1, in top-level template code
File "/usr/local/lib/python3.9/site-packages/jinja2/sandbox.py", line 393, in call
return __context.call(__obj, *args, **kwargs)
TypeError: call() takes 2 positional arguments but 3 were given

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 510, in async_render_to_info
render_info._result = self.async_render(variables, strict=strict, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 396, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: TypeError: call() takes 2 positional arguments but 3 were given

Second error

Logger: homeassistant.components.template.template_entity
Source: components/template/template_entity.py:72
Integration: Template (documentation, issues)
First occurred: 12:39:26 PM (5 occurrences)
Last logged: 12:39:26 PM

TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light1_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light1'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light2_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light2'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light3_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light3'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light4_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light4'
TemplateError('TypeError: call() takes 2 positional arguments but 3 were given') while processing template 'Template("{{ states('sensor.light5_light_temp', 'deg') | int}}")' for attribute '_temperature' in entity 'light.light5'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant