Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'TypeError: t is undefined' when main entity is not defined. #59

Closed
aIexus opened this issue Sep 22, 2022 · 10 comments
Closed

'TypeError: t is undefined' when main entity is not defined. #59

aIexus opened this issue Sep 22, 2022 · 10 comments

Comments

@aIexus
Copy link

aIexus commented Sep 22, 2022

I have strange error [TypeError: t is undefined] when I make undefined the main entity:

           - type: custom:room-card
             title: Hallway
             hide_title: false
             icon: mdi:door-closed-lock
            #  entity: sensor.hallway_lumi_weather_temperature
             show_icon: true
            #  tap_action: none
            #  double_tap_action: none
             entities:
               - entity: light.hallway_rgb_bulb
                 show_icon: true
                 state_color: true
                 name: Light
               - entity: binary_sensor.tapo_camera_motion
                 show_icon: true
                 state_color: true
                 hide_unavailable: true
                 name: Motion
               - entity: camera.tapo_camera_sd
                 show_icon: true
                 name: Camera
               - entity: binary_sensor.hallway_entrance_door_contact
                 show_icon: true
                 state_color: true
                 name: Door
             info_entities:
               - entity: sensor.hallway_lumi_weather_humidity
                 format: precision1
               - entity: sensor.hallway_lumi_weather_temperature
                 format: precision1

Originally posted by @aIexus in #56 (comment)

@marcokreeft87
Copy link
Owner

Which version do you use?

@aIexus
Copy link
Author

aIexus commented Sep 22, 2022

1.5.1

@marcokreeft87
Copy link
Owner

I dont get that error. Are you using only entities that are available?

image

@aIexus
Copy link
Author

aIexus commented Sep 22, 2022

Sure.
When I uncomment commented lines - there will be no errors.

@marcokreeft87
Copy link
Owner

marcokreeft87 commented Sep 22, 2022

I think you need to try some thing by yourself. If I cant reproduce, I cant fix it. Try and get more info about the issue. Provide screenshots (with the error visible in console).

@aIexus
Copy link
Author

aIexus commented Sep 22, 2022

image

@aIexus
Copy link
Author

aIexus commented Sep 22, 2022

image

@aIexus
Copy link
Author

aIexus commented Sep 22, 2022

How it is possible?
image
image

@aIexus
Copy link
Author

aIexus commented Sep 22, 2022

After clearing cached web content - problem disappears.

@aIexus aIexus closed this as completed Sep 22, 2022
@marcokreeft87
Copy link
Owner

Yeah HA is weird with cache :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants