You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[IMPROVE] If statements for booleans/trilean state #27
Evaluate rewriting if something_somewhere is True: to if something. This goes for None, False and True (hence trilean). It won't be possible everywhere (we have a specific case in plugwise-beta where we needed it like that, but most of them should be rewritable in python-plugwise.
Let's be careful with shortening if something is None: and if something is not None:.
I remember from the early days that in many cases we had to use/leave it at if something is not None: to obtain the wanted result.
Activity
bouwew commentedon Oct 30, 2020
Let's be careful with shortening
if something is None:andif something is not None:.I remember from the early days that in many cases we had to use/leave it at
if something is not None:to obtain the wanted result.CoMPaTech commentedon Oct 30, 2020
Yup, hence the reference to our earlier experience :)
bouwew commentedon Nov 1, 2020
Fixed in #30