From 91e7e5a0a10191c087dd232d0b255b7261822635 Mon Sep 17 00:00:00 2001 From: hermlon Date: Wed, 4 Sep 2024 18:17:53 +0200 Subject: [PATCH] Fixed formatting and tests --- .../components/mqtt/mqtt_backend_esp8266.cpp | 2 +- .../mqtt/mqtt_backend_libretiny.cpp | 2 +- tests/components/mqtt/esp8266-tls.yaml | 39 ------------------- .../mqtt_subscribe/test.esp8266-ard.yaml | 3 ++ 4 files changed, 5 insertions(+), 41 deletions(-) delete mode 100644 tests/components/mqtt/esp8266-tls.yaml diff --git a/esphome/components/mqtt/mqtt_backend_esp8266.cpp b/esphome/components/mqtt/mqtt_backend_esp8266.cpp index ef6e951c25..a43d79729e 100644 --- a/esphome/components/mqtt/mqtt_backend_esp8266.cpp +++ b/esphome/components/mqtt/mqtt_backend_esp8266.cpp @@ -107,4 +107,4 @@ void MQTTBackendESP8266::loop() { } // namespace esphome #endif -#endif \ No newline at end of file +#endif diff --git a/esphome/components/mqtt/mqtt_backend_libretiny.cpp b/esphome/components/mqtt/mqtt_backend_libretiny.cpp index 8ba1a4fb91..0da689c06e 100644 --- a/esphome/components/mqtt/mqtt_backend_libretiny.cpp +++ b/esphome/components/mqtt/mqtt_backend_libretiny.cpp @@ -88,4 +88,4 @@ void MQTTBackendLibreTiny::loop() { } // namespace esphome #endif -#endif \ No newline at end of file +#endif diff --git a/tests/components/mqtt/esp8266-tls.yaml b/tests/components/mqtt/esp8266-tls.yaml deleted file mode 100644 index cf1eef1611..0000000000 --- a/tests/components/mqtt/esp8266-tls.yaml +++ /dev/null @@ -1,39 +0,0 @@ -wifi: - ssid: MySSID - password: password1 - -time: - - platform: sntp - -mqtt: - client_id: "test-client" - broker: broker.hivemq.com - port: 8883 - certificate_authority: | - -----BEGIN CERTIFICATE----- - MIIEdTCCA12gAwIBAgIJAKcOSkw0grd/MA0GCSqGSIb3DQEBCwUAMGgxCzAJBgNV - BAYTAlVTMSUwIwYDVQQKExxTdGFyZmllbGQgVGVjaG5vbG9naWVzL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JKoZIhvcNAQELBQADggEBACMd44pXyn3pF3lM8R5V/cxTbj5HD9/G - VfKyBDbtgB9TxF00KGu+x1X8Z+rLP3+QsjPNG1gQggL4+C/1E2DUBc7xgQjB3ad1 - l08YuW3e95ORCLp+QCztweq7dp4zBncdDQh/U90bZKuCJ/Fp1U1ervShw3WnWEQt - 8jxwmKy6abaVd38PMV4s/KCHOkdp8Hlf9BRUpJVeEXgSYCfOn8J3/yNTd126/+pZ - 59vPr5KW7ySaNRB6nJHGDn2Z9j8Z3/VyVOEVqQdZe4O/Ui5GjLIAZHYcSNPYeehu - VsyuLAOQ1xk4meTKCRlb/weWsKh/NEnfVqn3sF/tM+2MR7cwA130A4w= - -----END CERTIFICATE----- - skip_cert_cn_check: false diff --git a/tests/components/mqtt_subscribe/test.esp8266-ard.yaml b/tests/components/mqtt_subscribe/test.esp8266-ard.yaml index 13ed311b17..a2d676dd9b 100644 --- a/tests/components/mqtt_subscribe/test.esp8266-ard.yaml +++ b/tests/components/mqtt_subscribe/test.esp8266-ard.yaml @@ -2,6 +2,9 @@ wifi: ssid: MySSID password: password1 +time: + - platform: sntp + mqtt: broker: test.mosquitto.org port: 1883