home-assistant / ui-schema

A schema to define a user interface for Home Assistant.
Apache License 2.0
41 stars 6 forks source link

Why is text on entity-button always uppercase? #232

Closed zombiehunter1 closed 5 years ago

zombiehunter1 commented 5 years ago

Been adding some entity buttons for some reason the button name is always in uppercase can I override this, It should display exactly what is in the name attribute

- entity: switch.downstairs_lights
        icon: 'mdi:page-layout-footer'
        name: 'Downstairs Lights' 
        tap_action:
          action: call-service
          service: switch.toggle
          service_data:
            entity_id: switch.downstairs_lights
        type: entity-button
wbilger commented 5 years ago

That's the default behavior for all or most cards I think. Can get around it with;

style: - text-transform: none #this line should be indented 2 spaces, can't seem to do it)

zombiehunter1 commented 5 years ago

Seems an odd choice to ignore the name and friendly_name and just capitalize everything, We are dealing with a UI presentation not the state machine

iantrich commented 5 years ago

duplicate of https://github.com/home-assistant/home-assistant-polymer/issues/2407