ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
268 stars 34 forks source link

helpers.py - SyntaxWarning: "is not" with a literal. #50

Closed hllhll closed 3 years ago

hllhll commented 3 years ago

Hi Just now trying to install via HACS, got this error on boot

home-assistant   | /config/custom_components/monitor_docker/helpers.py:407: SyntaxWarning: "is not" with a literal. Did you mean "!="?
home-assistant   |   and self._info[ATTR_MEMORY_LIMIT] is not 0
hllhll commented 3 years ago

But everything works a-ok as it seems, just a warning

ualex73 commented 3 years ago

Which python version are you using?

ualex73 commented 3 years ago

Ok, see it on latest 3.8.6, fixed in the repo now

ualex73 commented 3 years ago

I will close this one, the fix is in the repo. I will release a new version soon.