mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 04:12:23 +01:00
fix namespace
This commit is contained in:
@@ -4,7 +4,7 @@ from esphome.const import (
|
||||
CONF_ID,
|
||||
)
|
||||
|
||||
dfu_ns = cg.esphome_ns.namespace("ble")
|
||||
dfu_ns = cg.esphome_ns.namespace("beacon")
|
||||
Beacon = dfu_ns.class_("Beacon", cg.Component)
|
||||
|
||||
CONFIG_SCHEMA = cv.All(
|
||||
|
@@ -49,7 +49,7 @@ void startAdv(void) {
|
||||
}
|
||||
|
||||
namespace esphome {
|
||||
namespace ble {
|
||||
namespace beacon {
|
||||
|
||||
void Beacon::loop() {}
|
||||
|
||||
@@ -68,5 +68,5 @@ void Beacon::setup() {
|
||||
startAdv();
|
||||
}
|
||||
|
||||
} // namespace ble
|
||||
} // namespace beacon
|
||||
} // namespace esphome
|
||||
|
@@ -2,10 +2,10 @@
|
||||
#include "esphome/core/component.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace ble {
|
||||
namespace beacon {
|
||||
class Beacon : public Component {
|
||||
void loop() override;
|
||||
void setup() override;
|
||||
};
|
||||
} // namespace ble
|
||||
} // namespace beacon
|
||||
} // namespace esphome
|
||||
|
Reference in New Issue
Block a user