Hass only shows temp or humidity

On my hass page it will only show either the temperature or the humidity never both. After restarting hass it sometimes shows temp or some time humidity. it will only show the other if I restart hass.

sensor:
  - platform: dht
    sensor: DHT22
    pin: 23
    name : Lair 
    monitored_conditions:
      - temperature
      - humidity
    
binary_sensor:
  - platform: rpi_gpio
    ports:
      21: Lair Door
      20: Garage Door
    invert_logic: true
    
switch:
  - platform: rpi_gpio
    ports:
      14: Lair Light Electronics Bench
      15: Lair Light Gun Bench

Hi,

There is temporary solution I found at https://github.com/home-assistant/home-assistant/issues/8976#issuecomment-322355730

Cool, thanks ill give that a try when I get home today. Looks like it should solve it.