Skip to content

Conversation

@stuartp44
Copy link
Owner

This pull request makes minor improvements to the CraftSensor class in the custom_components/minibrew/sensor.py file by ensuring that the device instance is stored and the device's serial number is included in the sensor's device information.

  • The device instance is now explicitly stored as an attribute of the CraftSensor class, which can help with future access or debugging.
  • The device's serial_number is now included in the _attr_device_info dictionary for both "Craft" and "Smart Keg" models, improving device identification in Home Assistant. [1] [2]

@stuartp44 stuartp44 self-assigned this Jan 31, 2026
@stuartp44 stuartp44 merged commit 0a12ab8 into main Jan 31, 2026
5 checks passed
@stuartp44 stuartp44 deleted the stu/add_serial_number_to_device_info branch January 31, 2026 09:33
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.

2 participants