def on_speed_step_deleted(_: Any, step: SpeedStep) -> None: _LOG.debug("Step deleted") SPEED_STEP_CHANGED_SUBJECT.on_next(DbChange(step, DbChange.DELETE))
def on_speed_profile_deleted(_: Any, profile: SpeedProfile) -> None: _LOG.debug("Profile deleted") SPEED_PROFILE_CHANGED_SUBJECT.on_next(DbChange(profile, DbChange.DELETE))
def on_speed_step_added(_: Any, step: SpeedStep, created: bool) -> None: _LOG.debug("Profile added") SPEED_STEP_CHANGED_SUBJECT.on_next( DbChange(step, DbChange.INSERT if created else DbChange.UPDATE))
def on_speed_profile_added(_: Any, profile: SpeedProfile, created: bool) -> None: _LOG.debug("Profile added") SPEED_PROFILE_CHANGED_SUBJECT.on_next( DbChange(profile, DbChange.INSERT if created else DbChange.UPDATE))