Skip to content

Fix unpredictable entity names in concord232 binary_sensor#11292

Merged
MartinHjelmare merged 1 commit into
home-assistant:devfrom
rwa:rwa-sort-concord32-sensors-dev
Dec 25, 2017
Merged

Fix unpredictable entity names in concord232 binary_sensor#11292
MartinHjelmare merged 1 commit into
home-assistant:devfrom
rwa:rwa-sort-concord32-sensors-dev

Conversation

@rwa
Copy link
Copy Markdown
Contributor

@rwa rwa commented Dec 24, 2017

Description:

Bug: When using the concord232 platform, binary_sensor entity names, e.g., binary_sensor.unnamed_device_2, can map to different sensors in the concord alarm system in an unpredictable way.

Fix: Sort the sensors by zone number right after they are queried. This gives both a predictable order and a simple mapping from zone numbers to entity numbering when the zones do not have names.

Related issue (if applicable): fixes #11289

I don't think new documentation is needed, but this should go in the release notes to explain the possibly changed behavior.

Checklist:

If the code communicates with devices, web services, or third-party tools:

  • [X ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass

@homeassistant
Copy link
Copy Markdown
Contributor

Hi @rwa,

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@rwa rwa changed the title fix for unpredictable mapping of entity names to sensors in concord232 binary_sensor, issue 11289 fix for unpredictable mapping of entity names to sensors in concord232 binary_sensor Dec 24, 2017
Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MartinHjelmare
Copy link
Copy Markdown
Member

Please add a comment to the release PR when that is opened, to highlight the change.

@MartinHjelmare MartinHjelmare changed the title fix for unpredictable mapping of entity names to sensors in concord232 binary_sensor Fix unpredictable mapping of entity names to sensors in concord232 binary_sensor Dec 25, 2017
@MartinHjelmare MartinHjelmare changed the title Fix unpredictable mapping of entity names to sensors in concord232 binary_sensor Fix unpredictable entity names in concord232 binary_sensor Dec 25, 2017
@MartinHjelmare MartinHjelmare merged commit 802a95e into home-assistant:dev Dec 25, 2017
@MartinHjelmare MartinHjelmare added this to the 0.60.1 milestone Dec 25, 2017
@balloob balloob mentioned this pull request Jan 5, 2018
@home-assistant home-assistant locked and limited conversation to collaborators May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

binary_sensor platform concord232 entity mapping to sensors is unpredictable

4 participants