From 09d33c1bd117eeae43482d26d11d33a81d095b4d Mon Sep 17 00:00:00 2001
From: Oliver Kleinecke <okleinecke@web.de>
Date: Sat, 8 Feb 2025 16:07:33 +0100
Subject: [PATCH] Update mcp4461.h

---
 esphome/components/mcp4461/mcp4461.h | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/esphome/components/mcp4461/mcp4461.h b/esphome/components/mcp4461/mcp4461.h
index 48a19263fa..cb9ff0cfaa 100644
--- a/esphome/components/mcp4461/mcp4461.h
+++ b/esphome/components/mcp4461/mcp4461.h
@@ -54,12 +54,13 @@ enum class Mcp4461EepromLocation : uint8_t {
 enum class Mcp4461TerminalIdx : uint8_t { MCP4461_TERMINAL_0 = 0, MCP4461_TERMINAL_1 = 1 };
 
 enum ErrorCode {
-    MCP4461_STATUS_OK = 0,           // CMD completed successfully
-    MCP4461_STATUS_REGISTER_INVALID, // Status register value was invalid
-    MCP4461_VALUE_INVALID,           // Invalid value given for wiper / eeprom
-    MCP4461_STATUS_WRITE_PROTECTED,  // The value was read, but the CRC over the payload (valid and data) does not match
-    MCP4461_STATUS_WIPER_LOCKED,     // The wiper is locked using WiperLock-technology - all actions for this wiper will be aborted/discarded
-  } error_code_{MCP4461_STATUS_OK};
+  MCP4461_STATUS_OK = 0,           // CMD completed successfully
+  MCP4461_STATUS_I2C_ERROR,        // Unable to communicate with device
+  MCP4461_STATUS_REGISTER_INVALID, // Status register value was invalid
+  MCP4461_VALUE_INVALID,           // Invalid value given for wiper / eeprom
+  MCP4461_STATUS_WRITE_PROTECTED,  // The value was read, but the CRC over the payload (valid and data) does not match
+  MCP4461_STATUS_WIPER_LOCKED,     // The wiper is locked using WiperLock-technology - all actions for this wiper will be aborted/discarded
+} error_code_{MCP4461_STATUS_OK};
 
 
 class Mcp4461Wiper;