geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
560 stars 153 forks source link

Fixes logging crash in fan mode and swing. #126

Closed tlm closed 3 months ago

tlm commented 9 months ago

The logging for both fan mode and swing was trying to log unsigned integers as strings causing the esp device to crash. This change now logs the string representation of both the fan and swing modes at the verbose level.

There already exists #122 that addresses the crash in fan mode but it's lacking fixes for the swing mode and also is just logging the raw integer value which is meaningless for the user.