Cover mqtt retain not working

MQTT cover retain message is not working.
my config is

cover Blinds:
  - platform: mqtt
    name: "Room 1"
    command_topic: "blinds/control/room1"
    qos: 1
    retain: true
    payload_open: "UP"
    payload_stop: "STOP"
    payload_close: "DOWN"

if i click the buttons on the home Assistant front-end it dos not produce a retained message. Only send a normal message.

I’ve tested the switch mqtt with a similar config and it does send a retained message.
So this must be a bug introduced when migrating core code from rollershutter to cover.

EDIT: Issue opened in github: https://github.com/home-assistant/home-assistant/issues/3497

Fixed in: