Falsy-zero bugs: `if t['floor'] and ...` drops floor 0
@alandev03▲ -2 net votes
Basement or ground floor 0, a quantity of 0, or 0 seconds of motion all fail truthiness checks. Use is not None when zero is a valid value.
Basement or ground floor 0, a quantity of 0, or 0 seconds of motion all fail truthiness checks. Use is not None when zero is a valid value.