-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UX improvements #34
Comments
I don't fully understand this yet, but this fixes it (on top of the recent --- a/esphome/components/mitsubishi_itp/climate.py
+++ b/esphome/components/mitsubishi_itp/climate.py
@@ -105,14 +105,11 @@ INTERNAL_TEMPERATURE_SOURCE_OPTIONS = [
validate_custom_fan_modes = cv.enum(CUSTOM_FAN_MODES, upper=True)
BASE_SCHEMA = (
- cv.polling_component_schema(DEFAULT_POLLING_INTERVAL)
- .extend(climate.CLIMATE_SCHEMA)
- .extend(
+ climate.CLIMATE_SCHEMA.extend(
{
cv.GenerateID(CONF_ID): cv.declare_id(MitsubishiUART),
cv.Required(CONF_UART_HEATPUMP): cv.use_id(uart.UARTComponent),
cv.Optional(CONF_UART_THERMOSTAT): cv.use_id(uart.UARTComponent),
- cv.Optional(CONF_NAME, default="Climate"): cv.string,
cv.Optional(
CONF_SUPPORTED_MODES, default=DEFAULT_CLIMATE_MODES
): cv.ensure_list(climate.validate_climate_mode),
@@ -135,6 +132,7 @@ BASE_SCHEMA = (
),
}
)
+ .extend(cv.polling_component_schema(DEFAULT_POLLING_INTERVAL))
)
# TODO Storing the registration function here seems weird, but I can't figure out how to determine schema type later |
So just to clarify some of the intent here with the naming (to be clear, this is definitely user-setup-dependent): The reason I've added "Climate" as the default rather than allowing the device friendly name is that in my ESPHome config I've named the device If I didn't manually specify a separate name for the Climate component, then its id became |
I think we may be talking about the same thing :) I'd like the Climate entity to be named (say) "Basement Heat Pump". (If I set The standard, documented, way to accomplish what I'd like to accomplish (and I think you too!) this is to set With the code as it is today, setting With the patch I provided above, you can set |
June Improvements Branch updated with a fix to restore I feel a little weird checking off tasks in the part of the issue you created (never worked an issue with tasks in it like that), but here's where we are currently:
So it looks like basically swing stuff at this point. I'll either tackle some of these tonight, or just move the info here into #14 and track it there. |
I've copied some information from this issue into the Swing Support issue, so we can continue to track that particular enhancement there. |
Copying from Discord to not forget :)
That's useful mostly for debugging, AIUI? Is there a legitimate reason to turn it off otherwise?(see issue Disable Active Mode Switch when no Thermostat Defined #35)The text was updated successfully, but these errors were encountered: