steveuk23 / HA_Config

3 stars 1 forks source link

Some typos in your code 🤔 #1

Open xbmcnut opened 4 months ago

xbmcnut commented 4 months ago

Hey, thanks for sharing but after trying to deploy this today, I noticed a couple of code errors that prevented it from working properly. https://github.com/steveuk23/HA_Config/blob/main/Example%20Swipe%20card.yml

Line 102: Climate should say climate (to match the drop-down)

# CARD 3 #                
      - type: custom:button-card
        entity: climate.YOUR_THERMOSTAT
        name: climate
        show_entity_picture: true
        entity_picture: /local/images/icon/where_ever_your_image_is.png

Line 144: Remove secondary entities code. Should be:

      card:
        type: entities 
        title: Lights
        show_header_toggle: false
        entities:
          - light.YOUR_LIGHTS
          - light.YOUR_LIGHTS
          - light.YOUR_LIGHTS
          - light.YOUR_LIGHTS
steveuk23 commented 4 months ago

Thanks for that. I'd forgotten that I did this. Someone was curious how it was setup so tried copying and pasting on my phone which isn't always a good thing ha ha

xbmcnut commented 4 months ago

Thank you for sharing your code. Very much appreciated.