mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 13:38:04 +00:00
This PR fixes bitmap bit checking logic in Matter binary sensors by replacing equality comparisons with bitwise AND operations. The changes correct how the integration checks if specific bits are set in bitmap fields. Key changes: Changed equality checks (==) to bitwise AND operations (&) for checking bitmap bits Wrapped bitwise operations with bool() to ensure boolean return values Applied fixes consistently across PumpStatus, DishwasherAlarm, and RefrigeratorAlarm bitmaps