]
v_types = []
for _, member in mysensors.CONST.SetReq.__members__.items():
if all(test != member.value for test in not_v_types):
v_types.append(member)
@mysensors.mysensors_update
def _sensor_update(gateway, port, devices, nid):
Internal callback for sensor updates.
return (s_types, v_types, MySensorsSensor, add_devices)
After Change
mysensors.CONST.SetReq.V_LIGHT,
mysensors.CONST.SetReq.V_LOCK_STATUS,
]
if float(mysensors.VERSION) >= 1.5:
s_types.extend([
mysensors.CONST.Presentation.S_COLOR_SENSOR,
mysensors.CONST.Presentation.S_MULTIMETER,