home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.81k stars 30.51k forks source link

[frontend] input_select gives warning because of the UI #69178

Closed hellcry37 closed 2 years ago

hellcry37 commented 2 years ago

The problem

Issue manifest itself when I select in the UI one option from input select (random not one in particular), but not always. The issue manifest itself random and always when it happens in the UI I can see a BLANK option selected instead of one of the 3 that input_select has.

I use Firefox latest version and android companion app and it happens in both of them.

What version of Home Assistant Core has the issue?

core-2022.3.8

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

input_select, frontend

Link to integration documentation on our website

https://www.home-assistant.io/integrations/input_select

Diagnostics information

none

Example YAML snippet

configuration.yaml

input_select:
  tv:
    name: 'TV Samsung Input'
    icon: mdi:television
    options:
      - "NUC8i5"
      - "MiBox3"
      - "TV"

scripts.yaml
example of script used to change on one of the inputs. all scripts work ok so nothing is wrong.
```yaml
tv_samsung_tv:
  alias: 'TV Samsung - TV'
  icon: mdi:television-box
  description: 'TV Input'
  mode: single
  max_exceeded: silent
  sequence:
  - choose:
    - conditions:
      - condition: numeric_state
        entity_id: sensor.master_bedroom_outlet_tv_energy_power
        above: 9
      sequence:
      - service: remote.send_command
        target:
          entity_id: remote.broadlink_rm4_pro_remote
        data:
          device: 'Samsung TV'
          command: 'tv_input'
    - conditions:
      - condition: numeric_state
        entity_id: sensor.master_bedroom_outlet_tv_energy_power
        below: 10
      sequence:
      - service: remote.send_command
        target:
          entity_id: remote.broadlink_rm4_pro_remote
        data:
          device: 'Samsung TV'
          command: 'on'
      - delay:
          seconds: 12
      - service: remote.send_command
        target:
          entity_id: remote.broadlink_rm4_pro_remote
        data:
          device: 'Samsung TV'
          command: 'tv_input'
  - service: input_select.select_option
    target:
      entity_id: input_select.tv
    data:
      option: "TV"

### Anything in the logs that might be useful for us?

```txt
Logger: homeassistant.components.input_select
Source: components/input_select/__init__.py:295
Integration: Input Select (documentation, issues)
First occurred: 04:35:24 (1 occurrences)
Last logged: 04:35:24

Invalid option: (possible options: NUC8i5, MiBox3, TV)

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

input_select documentation input_select source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (input_select) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

pfunkmallone commented 2 years ago

Seeing this issue here too. Dashboard (ie. Lovelace) shows an empty input_select value and have seen the same errors in my logs.

hellcry37 commented 2 years ago

This is clearly about UI

more proof: https://ibb.co/4fB724T https://ibb.co/P63HqD2 https://ibb.co/r0yBtsK

This is about https://www.home-assistant.io/integrations/frontend/ and dashboard.

balloob commented 2 years ago

This is a frontend issue and tracked here https://github.com/home-assistant/frontend/issues/11991