Skip to content

Fix main device type and name updates#53

Open
wilbersl wants to merge 2 commits intothin-edge:mainfrom
wilbersl:fix-main-device-type-and-name-updates
Open

Fix main device type and name updates#53
wilbersl wants to merge 2 commits intothin-edge:mainfrom
wilbersl:fix-main-device-type-and-name-updates

Conversation

@wilbersl
Copy link
Contributor

Problem

When device.name = "main" is set in devices.toml, the plugin attempts to update the name and type of the main device. This results in an error:

[te/device/main//] {"@type": "child-device", "name": "main", "type": "modbus-device", "time": "2026-03-19T08:53:51.876779+00:00"}
[te/errors] Updating the entity type of device/main// is not supported
[te/device/main///twin/name] "main"
[te/device/main///twin/time] "2026-03-19T08:53:51.876779+00:00"
[te/device/main///twin/type] "modbus-device"

Expected Behavior

No changes should be applied to the device name or type when referring to the main device.

Solution

Skip creating a child device when the device name is main.

@wilbersl wilbersl requested a deployment to Test Pull Request March 19, 2026 12:12 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant