1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-05 21:02:20 +01:00

fix namespace

This commit is contained in:
Tomasz Duda
2024-02-03 15:10:38 +01:00
parent 3675a7a83d
commit aed9e117ec
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ from esphome.const import (
CONF_ID, CONF_ID,
) )
dfu_ns = cg.esphome_ns.namespace("ble") dfu_ns = cg.esphome_ns.namespace("beacon")
Beacon = dfu_ns.class_("Beacon", cg.Component) Beacon = dfu_ns.class_("Beacon", cg.Component)
CONFIG_SCHEMA = cv.All( CONFIG_SCHEMA = cv.All(

View File

@@ -49,7 +49,7 @@ void startAdv(void) {
} }
namespace esphome { namespace esphome {
namespace ble { namespace beacon {
void Beacon::loop() {} void Beacon::loop() {}
@@ -68,5 +68,5 @@ void Beacon::setup() {
startAdv(); startAdv();
} }
} // namespace ble } // namespace beacon
} // namespace esphome } // namespace esphome

View File

@@ -2,10 +2,10 @@
#include "esphome/core/component.h" #include "esphome/core/component.h"
namespace esphome { namespace esphome {
namespace ble { namespace beacon {
class Beacon : public Component { class Beacon : public Component {
void loop() override; void loop() override;
void setup() override; void setup() override;
}; };
} // namespace ble } // namespace beacon
} // namespace esphome } // namespace esphome