Ejemplo n.º 1
0
def on_speed_step_deleted(_: Any, step: SpeedStep) -> None:
    _LOG.debug("Step deleted")
    SPEED_STEP_CHANGED_SUBJECT.on_next(DbChange(step, DbChange.DELETE))
Ejemplo n.º 2
0
def on_speed_profile_deleted(_: Any, profile: SpeedProfile) -> None:
    _LOG.debug("Profile deleted")
    SPEED_PROFILE_CHANGED_SUBJECT.on_next(DbChange(profile, DbChange.DELETE))
Ejemplo n.º 3
0
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))
Ejemplo n.º 4
0
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))