Skip to content

Commit

Permalink
Update a1mini detection (#548)
Browse files Browse the repository at this point in the history
A recognizing problem occurred with a recently produced A1MINI. I got a new a1mini printer (07/05/24). hw_ver was changed to 'AP04' for a1mini, so ha-bambulab doesn't detects a1mini series.
  • Loading branch information
polyos authored Jul 14, 2024
1 parent 16f2915 commit 0cfe7e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/bambu_lab/pybambu/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_printer_type(modules, default):
# },
# P1P = AP04 / C11
# P1S = AP04 / C12
# A1Mini = AP05 / N1
# A1Mini = AP05 / N1 or AP04 / N1
# A1 = AP05 / N2S
#
# X1C printers are of the form:
Expand Down Expand Up @@ -163,6 +163,8 @@ def get_printer_type(modules, default):
return 'P1P'
if project_name == 'C12':
return 'P1S'
if project_name == 'N1':
return 'A1MINI'
elif hw_ver == 'AP05':
if project_name == 'N1':
return 'A1MINI'
Expand Down

0 comments on commit 0cfe7e9

Please sign in to comment.