Closed carpodaster closed 2 years ago
This change adds a common interface to devices with the simpleonoff_state property.
simpleonoff_state
It moves the #active? and #toggle! from Lightbulb (added in https://github.com/klausmeyer/fritzbox-smarthome/pull/31) to a module that is now also included by Switch
#active?
#toggle!
Lightbulb
Switch
:rocket: https://rubygems.org/gems/fritzbox-smarthome/versions/0.5.0
This change adds a common interface to devices with the
simpleonoff_state
property.It moves the
#active?
and#toggle!
fromLightbulb
(added in https://github.com/klausmeyer/fritzbox-smarthome/pull/31) to a module that is now also included bySwitch