mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Fix linter issues
This commit is contained in:
parent
0d21eca6c0
commit
29b7ad461d
4 changed files with 13 additions and 3 deletions
|
@ -116,7 +116,9 @@ def _patch_idfi2cbus(config):
|
|||
if "i2c" in fv.full_config.get():
|
||||
for i2c_inst in fv.full_config.get()["i2c"]:
|
||||
i2c_inst["id"].type = MockObjClass(
|
||||
"i2c::ADFI2CBus", parents=i2c_inst["id"].type._parents
|
||||
"i2c::ADFI2CBus",
|
||||
# pylint: disable=protected-access
|
||||
parents=i2c_inst["id"].type._parents,
|
||||
)
|
||||
|
||||
return config
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
#include <cinttypes>
|
||||
|
||||
namespace esphome {
|
||||
|
||||
// Please the linter
|
||||
namespace esp_adf {}
|
||||
|
||||
namespace i2c {
|
||||
|
||||
static const char *const TAG = "i2c.adf";
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
#include <driver/i2c.h>
|
||||
|
||||
namespace esphome {
|
||||
|
||||
// Please the linter
|
||||
namespace esp_adf {}
|
||||
|
||||
namespace i2c {
|
||||
|
||||
class ADFI2CBus : public I2CBus, public Component {
|
||||
|
|
|
@ -174,12 +174,12 @@ void ESPADFSpeaker::player_task(void *params) {
|
|||
xQueueSend(this_speaker->event_queue_, &event, portMAX_DELAY);
|
||||
|
||||
audio_pipeline_unregister(pipeline, i2s_stream_writer);
|
||||
audio_pipeline_unregister(pipeline, filter);
|
||||
// audio_pipeline_unregister(pipeline, filter);
|
||||
audio_pipeline_unregister(pipeline, raw_write);
|
||||
|
||||
audio_pipeline_deinit(pipeline);
|
||||
audio_element_deinit(i2s_stream_writer);
|
||||
audio_element_deinit(filter);
|
||||
// audio_element_deinit(filter);
|
||||
audio_element_deinit(raw_write);
|
||||
|
||||
event.type = TaskEventType::STOPPED;
|
||||
|
|
Loading…
Reference in a new issue