States('some_entity') versus states.some_entity.state

I know I should know this and I promise to make a note of the answer this time :blush:

What is the difference between these two?

states('sensor.dark_sky_temperature') and
states.sensor.dark_sky_temperature.state

Where would have been the best place for me to try and find out the answer for myself? I searched the forum because I know it is in here somewhere but I couldn’t find it.

I’d really rather not be asking old questions…

:wink:

1 Like

Thanks…
[slinks off with appropriate embarrassment]

2 Likes