Xiaomi Home Assistant Bug: Action Buttons Displayed as Switches
in Post with 0 comment

## Introduction
The Xiaomi Home Assistant is a smart home system that integrates various devices to provide a seamless and convenient experience for users. However, a recent bug has been reported where action buttons are being displayed as switches, causing confusion and inconvenience for users.
## The Bug
The bug is characterized by the display of action buttons as switches, as shown in the image below.
![Image](https://github.com/user-attachments/assets/77e5eb79-dc21-46f2-b00d-05d4ab9f709c)
When these switches are turned on or off, they can trigger actions, but the type of action is incorrect.
## How to Reproduce the Bug
To reproduce the bug, follow these steps:
1. Add a leshi.light.wy0b01 device to the Xiaomi Home Assistant.
2. Enable non-standard entities.
## Expected Behavior
The expected behavior is for the entities to be displayed as buttons, not switches.
## Reproduce Time
The bug was first reported on September 7, 2025.
## Home Assistant Logs
Unfortunately, no response was received when attempting to retrieve the Home Assistant logs.
## Log Timezone
The log timezone is set to Shanghai.
## Home Assistant Core Version
The Home Assistant Core version is 2025.8.3.
## Home Assistant Operation System Version
The Home Assistant Operation System version is not available.
## Xiaomi Home Integration Version
The Xiaomi Home Integration version is v0.4.2.
## Additional Context
No additional context is available for this bug.
## Conclusion
The Xiaomi Home Assistant bug where action buttons are displayed as switches is a significant issue that needs to be addressed. The bug can be reproduced by adding a leshi.light.wy0b01 device and enabling non-standard entities. The expected behavior is for the entities to be displayed as buttons, not switches. The Home Assistant logs and additional context are not available, but the bug has been reported and needs to be fixed to provide a better user experience.

The article has been posted for too long and comments have been automatically closed.