Skip to content

Commit

Permalink
Merge pull request #19 from dmamontov/bugfix/use_default_libs
Browse files Browse the repository at this point in the history
Fix use_default_libs
  • Loading branch information
Dmitry Mamontov authored Dec 19, 2022
2 parents dcff868 + c5e02c3 commit 9c3c842
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
blekeyboard/
bin
lib
include
.DS_Store
__pycache__
.mypy_cache
.esphome
.idea
components/ble_keyboard/__pycache__
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ble_keyboard:
battery_level: 50
reconnect: true
buttons: true
use_default_libs: true
use_default_libs: false
```
* **id** (Optional, string): Component ID. Needed for action;
Expand All @@ -74,7 +74,7 @@ ble_keyboard:
* **battery_level** (Optional, int): Keyboard battery level (default: 100);
* **reconnect** (Optional, bool): Automatic reconnect service after disconnecting the device. (default: true);
* **buttons** (Optional, bool): Whether to add separate buttons for [keys](https://github.com/dmamontov/esphome-blekeyboard/wiki/Keys) (default: true);
* **use_default_libs** (Optional, bool): Whether to use the arduino standard library. In recent versions of frameworks, they come by default. Actual for esp32s2, esp32s3, esp32c3 and esp32h2. (default: true).
* **use_default_libs** (Optional, bool): Whether to use the arduino standard library. (default: false).
### Actions
Expand Down
2 changes: 1 addition & 1 deletion components/ble_keyboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
cv.Optional(CONF_MANUFACTURER_ID, default=COMPONENT_CLASS): cv.Length(min=1),
cv.Optional(CONF_BATTERY_LEVEL, default=100): cv.int_range(min=0, max=100),
cv.Optional(CONF_RECONNECT, default=True): cv.boolean,
cv.Optional(CONF_USE_DEFAULT_LIBS, default=True): cv.boolean,
cv.Optional(CONF_USE_DEFAULT_LIBS, default=False): cv.boolean,
cv.Optional(CONF_BUTTONS, default=True): cv.boolean,
}
)
Expand Down
1 change: 0 additions & 1 deletion examples/esp32c3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ ble_keyboard:
reconnect: true
battery_level: 50
buttons: true
use_default_libs: false

text_sensor:
- platform: homeassistant
Expand Down
3 changes: 3 additions & 0 deletions pyvenv.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
home = /opt/homebrew/opt/[email protected]/bin
include-system-site-packages = false
version = 3.10.8

0 comments on commit 9c3c842

Please sign in to comment.