Only write schedules to lights and pumps #6
Loading…
Reference in a new issue
No description provided.
Delete branch "gulaschcowboy/support-tier-dose"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As discussed in r3pek/python-mobius#2.
_live_group_members()inservices.pyrejected schedule-write targets by a denylist ("pump (experimental)","unsupported"). With python-mobius reporting dosing pumps as"dose"(r3pek/python-mobius#3), a dosing pump would pass it, andwrite_schedule_groupwould take the non-light branch and callset_pump_schedule()on it, plus on lights sharing its group mask. It's an allowlist ("light","pump") now."dose"target is rejected, and a write to a dosing pump sharing a light's group mask writes nothing to either. Both fail with the old denylist.DoseV1as their example; they use an unknown primitive type now, sinceDoseV1is"dose"with the new library.websocket_api.py(_resolve_tank_groups()) already used an allowlist, so the cards were never affected.This works with the current python-mobius too (it only makes the check stricter); the
dosetier itself shows up once python-mobius#3 is released. Tested on my tank with a fork build (two Versa, lights, pumps)._live_group_members() rejected targets by a denylist ("pump (experimental)", "unsupported"). With python-mobius reporting dosing pumps as "dose" (python-mobius#2), a dosing pump would pass it and write_schedule_group would write a pump schedule to it, plus to lights sharing its group mask. Use an allowlist instead, with tests for a dosing pump target and its group.