Expected a value of type `never`, but received: `[object Object]`

hello

I have a problem with the next code.

- type: conditional
                conditions:
                  - entity: sensor.m2003j15sc_wifi_connection
                    state_not: <not connected>
                card:
                  type: custom:mushroom-template-card
                  primary:>-
                   {{ states('sensor.m2003j15sc_wifi_connection') }}

The visual editor is not supported for this configuration:
At path: chips.0.card_mod – Expected a value of type never, but received: [object Object]
You can still edit the configuration in YAML.

Then after clicking save. he as changed in the next code and give me unknown on the picture.

                conditions:
                  - entity: sensor.m2003j15sc_wifi_connection
                    state_not: <not connected>
                card:
                  type: custom:mushroom-template-card
                  primary: '{{ states(''sensor.m2003j15sc_wifi_connection'') }}'

Can you help me?

It was in companion the wifi connection was not turn on.