Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102657

Why is the python_scripts environment so crippled?

$
0
0

@jdknox wrote:

I’m having a terrible time getting very basic stuff to work in python. For example:

File "color_temp.py", line 22, in calc_color
NameError: name '_inplacevar_' is not defined

All line 22 does is a -= 1, where a is just a float.

I’m being serious. As soon as I changed the line to a = a - 1 the script works. This is unacceptable by even the lowest standards! I also can’t use map, nor starred expressions in function calls. What am I doing wrong?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 102657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>