Giter Club home page Giter Club logo

Comments (2)

DevelopmentalOctopus avatar DevelopmentalOctopus commented on August 30, 2024

Agreed; @qdot this complicates Home Assistant integration.

A Home Assistant integration would greatly prefer using the name as an internal ID rather than an index, so the user can reference the device by (the much more stable) name when adding it to Home Assistant scripts.

This is already mostly achievable; except that device_removed_handlers are given an index rather than a device or name. Because the device is removed before the event is sent; it makes sense to not send the device.

Can we adjust it to report the name when deleting? or both index and name? Or to avoid breaking changes; a second device_removed_handler that emits the name?

from buttplug-py.

DevelopmentalOctopus avatar DevelopmentalOctopus commented on August 30, 2024

Current workaround is to just check ButtplugClient.devices on every device_removed_handler event.

from buttplug-py.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.