aioesphomeapi/gen-protoc.sh
Guillermo Ruffino 511cb62dd9 Add climate feature fan (#4)
* f1

* renamed to fan_mode

* fixes, add back compat with ha

* revert client_version - add swing
2019-11-16 16:34:14 +01:00

8 lines
320 B
Bash
Executable File

#!/usr/bin/env bash
# Generate protobuf compiled files
protoc --python_out=aioesphomeapi -I aioesphomeapi aioesphomeapi/*.proto
# https://github.com/protocolbuffers/protobuf/issues/1491
sed -i 's/import api_options_pb2 as api__options__pb2/from . import api_options_pb2 as api__options__pb2/' aioesphomeapi/api_pb2.py