mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
Fixed HA frontend update problems for optolink switch
This commit is contained in:
parent
bb51fcc314
commit
4c2fb484d3
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ class OptolinkSwitch : public DatapointComponent, public esphome::switch_::Switc
|
||||||
void write_state(bool value) override;
|
void write_state(bool value) override;
|
||||||
|
|
||||||
const StringRef &get_component_name() override { return get_name(); }
|
const StringRef &get_component_name() override { return get_name(); }
|
||||||
void datapoint_value_changed(uint8_t value) override { publish_state(state); };
|
void datapoint_value_changed(uint8_t value) override { publish_state((bool) value); };
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace optolink
|
} // namespace optolink
|
||||||
|
|
Loading…
Reference in a new issue