Why do I get a warning for this picture entity card, it's done as the example?

image

The code in text:

entity: binary_sensor.bedroomwindow
show_name: false
show_state: false
state_image:
  'off': /local/images/windowclose.png
  'on': /local/images/windowopen.png
type: picture-entity