diff --git a/cbpi/cli.py b/cbpi/cli.py index f90d3ad..a830f33 100644 --- a/cbpi/cli.py +++ b/cbpi/cli.py @@ -68,7 +68,7 @@ def create_home_folder_structure(): def setup_one_wire(): print("Setting up 1Wire") - with open('/boot/config.txt', 'wb') as f: + with open('/boot/config.txt', 'w') as f: f.write("dtoverlay=w1-gpio,gpiopin=4,pullup=on") print("/boot/config.txt created")