Help with sensor.yaml

I’m really trying my best to get this code to work in sensors.yaml, I really don’t know what I’m doing, but I’m too far down the rabbit hole to now give up lol.
I’m trying to make a card to show how many bulbs are turned on in the house, I have copid the code from someone else but the indentations are wrong.

Screenshot 2023-04-21 221505

Thanks in advance :slight_smile:

bad indentation

Please don’t share pictures of text. Paste the actual text into your post and format it correctly. That way we can copy / paste / edit to help you. Rather than having to type the whole thing out.

Indent the highlighted lines by the number of spaces indicated below.

Sorry, Im new to all this. I will make sure to copy and paste in the futre, Thanks :slight_smile:

I will try this now, thanks a lot