Skip to content

Bug: MQTT discovery doesn't work if device name has an apostrophe #53

Closed

Description

@mdrichardson

Might want to add a note about this or maybe do some validation for the device name, but I had set mine to Michael's Desktop and saw that the discovery message was published as: homeassistant/binary_sensor/Michael's Desktop/michael_s_desktop_webcamactive/config, but couldn't find the entities or devices being added to general HA or to the MQTT Integration. I changed my device name to MichaelDesktop and they were then added immediately. I believe spaces have worked in my MQTT names before, but I guess apostrophes don't.

Activity

  1. LAB02-Admin commented on Apr 21, 2022

    @LAB02-Admin
    Member

    Hey @mdrichardson,

    Good catch, thanks! Will add validation/sanitation

    [hassagent-52]

  2. self-assigned this
    on Apr 21, 2022
  3. LAB02-Admin commented on Jun 10, 2022

    @LAB02-Admin
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions