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

deps zigbee-herdsman #2189

Closed
G1K opened this issue Feb 1, 2021 · 7 comments
Closed

deps zigbee-herdsman #2189

G1K opened this issue Feb 1, 2021 · 7 comments
Labels

Comments

@G1K
Copy link

G1K commented Feb 1, 2021

c0e84ec

when refactoring, a dependency was added zigbee-herdsmannow it is in two directories and takes up more space which is not very much on xiaomi gw. Is it possible to do without this direct relationship?

@Koenkk
Copy link
Owner

Koenkk commented Feb 2, 2021

The only reason for this dependency is the manufacturer codes (

const manufacturerOptions = {
). Can you create a PR to move this back in and remove the zigbee-herdsman dependency?

@G1K
Copy link
Author

G1K commented Feb 3, 2021

I do not know how to solve this nicely and updateable. I can only offer to transfer static codes of Manufacturers.

Is such a solution suitable for PR?

@Koenkk
Copy link
Owner

Koenkk commented Feb 3, 2021

I do not know how to solve this nicely and updateable. I can only offer to transfer static codes of Manufacturers.

Yes, exactly what I meant!

@G1K
Copy link
Author

G1K commented Feb 3, 2021

I tried to do this, but herdsman is still used for herdsman.Zcl.Status, it used to be in common.js. My suggestion is to add herdsman as a dev dependency or you need to move all const zcl into a separate package.

@G1K
Copy link
Author

G1K commented Feb 3, 2021

Or you can still try updating the version of herdsman along with the main repository. Then the npm shouldn't pull up a specific version.

@Koenkk
Copy link
Owner

Koenkk commented Feb 3, 2021

I tried to do this, but herdsman is still used for herdsman.Zcl.Status, it used to be in common.js. My suggestion is to add herdsman as a dev dependency or you need to move all const zcl into a separate package.

I don't think it's an option. That would mean it not always available while it is used in production code

Or you can still try updating the version of herdsman along with the main repository. Then the npm shouldn't pull up a specific version.

That seems the best solution for now. With next z2m release I will make sure zigbee-herdsman-converters and zigbee2mqtt use the exact same zigbee-herdsman version.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2021

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants