scenemap and effect enforcers.
This commit is contained in:
+3
-3
@@ -14,15 +14,15 @@ type Manual struct {
|
||||
Temperature *float64 `json:"temperature,omitempty"`
|
||||
}
|
||||
|
||||
func (e *Manual) EffectDescription() string {
|
||||
func (e Manual) EffectDescription() string {
|
||||
return fmt.Sprintf("Manual%s", e.State(0, 0, 0).String())
|
||||
}
|
||||
|
||||
func (e *Manual) Frequency() time.Duration {
|
||||
func (e Manual) Frequency() time.Duration {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (e *Manual) State(int, int, int) device.State {
|
||||
func (e Manual) State(int, int, int) device.State {
|
||||
return device.State{
|
||||
Power: e.Power,
|
||||
Temperature: e.Temperature,
|
||||
|
||||
Reference in New Issue
Block a user