Skip to content
Snippets Groups Projects
Commit a9ad64d2 authored by George Styles's avatar George Styles
Browse files

Change OTA switch to be diagnostic to hide from HA main page

parent d9b4a50e
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,12 @@ namespace esphome
{
namespace proxy_receiver
{
OTASwitchComponent::OTASwitchComponent()
{
this->set_entity_category(ENTITY_CATEGORY_DIAGNOSTIC);
}
void OTASwitchComponent::write_state(bool state)
{
_deviceSideState = state;
......
......@@ -22,6 +22,7 @@ namespace esphome
void setup() override;
public:
OTASwitchComponent();
void set(bool state);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment