From 095acce3e28ccec918968d5af44af1edd85b4a48 Mon Sep 17 00:00:00 2001 From: Jeremy Brown Date: Tue, 1 Jul 2025 22:48:42 -0400 Subject: [PATCH] Mmc5603 fix for devices that don't retrieve chip_id (#8959) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/mmc5603/mmc5603.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mmc5603/mmc5603.cpp b/esphome/components/mmc5603/mmc5603.cpp index 86b1b23c15..7f78f9592a 100644 --- a/esphome/components/mmc5603/mmc5603.cpp +++ b/esphome/components/mmc5603/mmc5603.cpp @@ -39,7 +39,7 @@ void MMC5603Component::setup() { return; } - if (id != MMC56X3_CHIP_ID) { + if (id != 0 && id != MMC56X3_CHIP_ID) { // ID is not reported correctly by all chips, 0 on some chips ESP_LOGCONFIG(TAG, "Chip Wrong"); this->error_code_ = ID_REGISTERS; this->mark_failed();