diff --git a/components/panasonic_heatpump/commands.cpp b/components/panasonic_heatpump/commands.cpp index 7d636ee..39f9a4c 100644 --- a/components/panasonic_heatpump/commands.cpp +++ b/components/panasonic_heatpump/commands.cpp @@ -148,17 +148,21 @@ namespace esphome return (byte6 & ~(base << bit)) | (val << bit); } - uint8_t PanasonicCommand::setDemandControl(size_t input) - { - switch (input) - { - case 0: return 0xEB; - case 1: return 0xB8; - case 2: return 0x85; - case 3: return 0x52; - case 4: return 0x2B; - default: return 0; // do nothing - } - } - } // namespace panasonic_heatpump -} // namespace esphome \ No newline at end of file +uint8_t PanasonicCommand::setDemandControl(size_t input) { + switch (input) { + case 0: + return 0xEB; + case 1: + return 0xB8; + case 2: + return 0x85; + case 3: + return 0x52; + case 4: + return 0x2B; + default: + return 0; // do nothing + } +} +} // namespace panasonic_heatpump +} // namespace esphome