From e35f90d6e478cd86d2dfd51d7c070d3df9e3886c Mon Sep 17 00:00:00 2001 From: Reuben <4957964+reubn@users.noreply.github.com> Date: Tue, 17 Jan 2023 00:14:45 +0000 Subject: [PATCH] Allow 0xA8 ID for APDS9960 (#4287) fixes https://github.com/esphome/issues/issues/736 --- esphome/components/apds9960/apds9960.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/apds9960/apds9960.cpp b/esphome/components/apds9960/apds9960.cpp index 05091f3f7d..1c6ec5c14a 100644 --- a/esphome/components/apds9960/apds9960.cpp +++ b/esphome/components/apds9960/apds9960.cpp @@ -23,7 +23,7 @@ void APDS9960::setup() { return; } - if (id != 0xAB && id != 0x9C) { // APDS9960 all should have one of these IDs + if (id != 0xAB && id != 0x9C && id != 0xA8) { // APDS9960 all should have one of these IDs this->error_code_ = WRONG_ID; this->mark_failed(); return;