Repository navigation
chore: disable config entities by default - #24
Conversation
There was a problem hiding this comment.
Code Review
This pull request disables several configuration entities by default across the select, switch, and text platforms by setting entity_registry_enabled_default to False. The reviewer suggests improving code maintainability by setting this default value directly in the dataclass definitions instead of repeating it for each entity. Additionally, the feedback points out several entities that appear to have been missed, such as update_interval, night_mode_app, pinned_app, and TronbytNightModeSwitch, which should also be disabled to ensure consistency with the intended changes.
| icon="mdi:wifi", | ||
| value_fn=lambda device: (device.get("info") or {}).get("ssid"), | ||
| patch_key="ssid", | ||
| entity_registry_enabled_default=False, |
There was a problem hiding this comment.
There was a problem hiding this comment.
Same as above. I'm going to prefer being explicit here.
By default, TronbytAssistant creates too many entities. This PR disables config entities by default: skip_display_version, ap_mode, prefer_ipv6, swap_colors, ssid, image_url, hostname, sntp_server, syslog_addr, wifi_power_save.