Configuration Validation warning

I did a configuration check after updating HACS custom integrations, and got an error I haven’t seen before:

“homeassistant” is an integration?

I did a grep of my config folder for “homeassistant.sensor”, nothing found.

Any ideas?

You may have an indentation issue.

instead of this in your configuration.yaml file:

homeassistant:

sensor:

You could have:

homeassistant:

  sensor:

Thanks for the pointer…
I don’t have the homeassistant: component in my configuration.yaml. It hasn’t been there for a couple of years.

But in my sensors.yaml file I do have two “platform: homeassistant” which would match the two warning lines.

Just curious, do you see anything wrong here?
What surprises me is that I’ve restarted maybe a dozen times in the past week and only saw this warning after updating a few HACS custom components.

- platform: homeassistant
  name: "steve-glucose"
  entity_id: sensor.dexcom_stevermann_glucose_value
  
- platform: homeassistant
  id: valve_number
  entity_id: input_number.sprinkler_valve_number

UPDATE

Figured it out, platform: homeassistant has been depreciated.

Now I need to figure out what platform to actually use.

I’ve never seen this. What did it do?

Wait, is that ESPHome config you have mistakenly put in your sensors.yaml file?

Nope. I just changed them to template sensors:

- platform: template
  sensors:
    steve_glucose:
      friendly_name: "Steve's Glucose"
      value_template: "{{ states('sensor.dexcom_stevermann_glucose_value') }}"

- platform: template
  sensors:
    valve_number:
      friendly_name: "Valve Number"
      value_template: "{{ states('input_number.sprinkler_valve_number') }}"

Why are you just copying the states of other sensors though?

Ummmmm… Senior moment?
Brain fade?
Part of my troubleshooting included some research into just that- why just make sensor from the state of an entity?
Because, I don’t know better?

At any rate, I never used the sensors steve_glucose and valve_number, so I just deleted them. This also explains why a grep search didn’t find them.

These are probably old code that never got cleaned up.

But, curious that restarting Home Assistant never showed these warnings before today? When I restart Home Assistant, I usually do it through the system menu:

But this time HACS offered a restart link to a page that I can’t find now, but it gave the option of a configuration check. This is where I discovered these warnings. Also, a restart from that HACS page did present these warnings.

Does this mean that the restart from the system page doesn’t do a configuration check?