Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Configurable token #6

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Conversation

chickenandpork
Copy link
Owner

Permit the configuration of a non-default token to talk to the OSBee

The default token for the OSBee was hard-coded for expediency; this PR allows a different value to be set:

binary_sensor:
  - platform: osbee
    host: 192.168.1.22
    token: BobIsAGiant

sensor:
  - platform: osbee
    host: 192.168.1.22
    token: BobIsAGiant

switch:
  - platform: osbee
    host: 192.168.1.22
    token: BobIsAGiant

Configuration is still redundant: the first block that is recognized and creates the OSBeeAPI proxy object is the token that gets used. Note that multi-threaded setup can give inconsistent results if different tokens are currently given for switch/sensor/binary_sensor.

@chickenandpork chickenandpork merged commit 6547ef7 into master Jul 7, 2023
2 checks passed
@chickenandpork chickenandpork deleted the feature/configurable-token branch July 7, 2023 07:37
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.

1 participant